Calling a remote resource

The connection infrastructure in zero.core provides a simple way to make REST-style requests to resources using a variety of protocols.

For the application developer

The Connection API is used to send requests to resources and work with their response. You can use a variety of protocols, including HTTP, to work with remote resources and SMTP to send e-mails.

The activities of the zero.assemble.flow component use the connection infrastructure to work with HTTP and HTTPS services and send e-mails. PHP developers can also take advantage of the connection infrastructure, by using the zero.php.connection component.

For the application builder

The destinations addressed by the application using the Connection API can be configured without modification to the application code through the specification of protocol configuration and connection handlers in zero.config.

For advanced scenarios

The connection infrastructure includes interfaces to enable the implementation of new connection handlers and protocol transports.

Reference material

Version 1.0.0.3.25591