Documentation

NlpHttpClient

Injectable HTTP transport used by NlpServiceHandler.

Implementations return the raw response body on success and null when the request could not be completed (network failure, DNS error, refused, or non-success HTTP status when $ignoreErrors is false).

Table of Contents

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
Return values
string|null

        
On this page

Search results