PHP Class eZ\Publish\Core\Search\Elasticsearch\Content\Gateway\HttpClient\Stream

Inheritance: implements eZ\Publish\Core\Search\Elasticsearch\Content\Gateway\HttpClient
ファイルを表示 Open project: ezsystems/ezpublish-kernel

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\Search\Elasticsearch\Content\Gateway\Message
return eZ\Publish\Core\Search\Elasticsearch\Content\Gateway\Message