StreamNlpHttpClient
in package
implements
NlpHttpClient
FinalYes
NlpHttpClient implementation backed by file_get_contents + stream contexts.
Table of Contents
Interfaces
- NlpHttpClient
- Injectable HTTP transport used by NlpServiceHandler.
Methods
- request() : string|null
Methods
request()
public
request(string $url, string $method[, string|null $jsonBody = null ][, int $timeoutSeconds = 30 ][, bool $ignoreErrors = false ]) : string|null
Parameters
- $url : string
- $method : string
- $jsonBody : string|null = null
- $timeoutSeconds : int = 30
- $ignoreErrors : bool = false