\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 : callable

Type

callable

Methods

__construct()

__construct(callable  $nextHandler) 

Parameters

callable $nextHandler

Next handler to invoke.

addExpectHeader()

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

Parameters

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