PHP Class eZ\Publish\Core\REST\Client\HttpClient\Stream

Inheritance: implements eZ\Publish\Core\REST\Client\HttpClient
Mostrar archivo Open project: ezsystems/ezpublish-kernel Class Usage Examples

Public Methods

Method Description
__construct ( string $server ) Constructs a new REST client instance for the given $server.
request ( string $method, string $path, Message $message = null ) : Message Execute a HTTP request to the remote server.

Protected Methods

Method Description
getRequestHeaders ( array $headers ) : string Get formatted request headers.

Method Details

__construct() public method

Constructs a new REST client instance for the given $server.
public __construct ( string $server )
$server string Remote server location. Must include the used protocol.

getRequestHeaders() protected method

Merged with the default values.
protected getRequestHeaders ( array $headers ) : string
$headers array
return string

request() public method

Returns the result from the remote server.
public request ( string $method, string $path, Message $message = null ) : Message
$method string
$path string
$message eZ\Publish\Core\REST\Common\Message
return eZ\Publish\Core\REST\Common\Message