class Guzzle6HttpHandler (View source)

Traits

A trait used to call a PSR-3 logging interface.

Methods

__construct(ClientInterface $client, LoggerInterface|null $logger = null)

No description

ResponseInterface
__invoke(RequestInterface $request, array $options = [])

Accepts a PSR-7 request and an array of options and returns a PSR-7 response.

PromiseInterface
async(RequestInterface $request, array $options = [])

Accepts a PSR-7 request and an array of options and returns a PromiseInterface

requestLog(RequestInterface $request, array $options)

No description

void
responseLog(ResponseInterface $response, RpcLogEvent $requestEvent)

No description

Details

__construct(ClientInterface $client, LoggerInterface|null $logger = null)

No description

Parameters

ClientInterface $client
LoggerInterface|null $logger

ResponseInterface __invoke(RequestInterface $request, array $options = [])

Accepts a PSR-7 request and an array of options and returns a PSR-7 response.

Parameters

RequestInterface $request
array $options

Return Value

ResponseInterface

PromiseInterface async(RequestInterface $request, array $options = [])

Accepts a PSR-7 request and an array of options and returns a PromiseInterface

Parameters

RequestInterface $request
array $options

Return Value

PromiseInterface

RpcLogEvent requestLog(RequestInterface $request, array $options)

internal  
 

No description

Parameters

RequestInterface $request
array $options

Return Value

RpcLogEvent

void responseLog(ResponseInterface $response, RpcLogEvent $requestEvent)

internal  
 

No description

Parameters

ResponseInterface $response
RpcLogEvent $requestEvent

Return Value

void