\GuzzleHttpPrepareBodyMiddleware

Prepares requests that contain a body, adding the Content-Length, Content-Type, and Expect headers.

Summary

Methods
Properties
Constants
__construct()
__invoke()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
addExpectHeader()
$nextHandler
N/A

Properties

$nextHandler

$nextHandler

Methods

__construct()

__construct(callable  $nextHandler) : mixed

Parameters

callable $nextHandler

Returns

mixed —

__invoke()

__invoke(\Psr\Http\Message\RequestInterface  $request, array  $options) : \GuzzleHttp\Promise\PromiseInterface

Parameters

\Psr\Http\Message\RequestInterface $request
array $options

Returns

\GuzzleHttp\Promise\PromiseInterface —

addExpectHeader()

addExpectHeader(\Psr\Http\Message\RequestInterface  $request, array  $options, array  $modify) : void

Add expect header

Parameters

\Psr\Http\Message\RequestInterface $request
array $options
array $modify