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

Inheritance: implements eZ\Publish\Core\Search\Elasticsearch\Content\Gateway\HttpClient
Afficher le fichier Open project: ezsystems/ezpublish-kernel

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
getRequestHeaders ( array $headers ) : string Get formatted request headers.

Method Details

__construct() public méthode

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 méthode

Merged with the default values.
protected getRequestHeaders ( array $headers ) : string
$headers array
Résultat string

request() public méthode

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