Class

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

class Stream implements HttpClient

Simple PHP stream based HTTP client.

Methods

__construct(string $server)

Constructs a new REST client instance for the given $server.

Message request(string $method, string $path, Message $message = null)

Execute a HTTP request to the remote server.

Details

at line 39
public __construct(string $server)

Constructs a new REST client instance for the given $server.

Parameters

string $server Remote server location. Must include the used protocol.

at line 73
public Message request(string $method, string $path, Message $message = null)

Execute a HTTP request to the remote server.

Returns the result from the remote server.

Parameters

string $method
string $path
Message $message

Return Value

Message