Documentation

PrepareBodyMiddleware
in package

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

Tags
final

Table of Contents

Properties

$nextHandler  : callable(RequestInterface, array<string|int, mixed>): PromiseInterface

Methods

__construct()  : mixed
__invoke()  : PromiseInterface
addExpectHeader()  : void
Add expect header

Properties

Methods

addExpectHeader()

Add expect header

private addExpectHeader(RequestInterface $request, array<string|int, mixed> $options, array<string|int, mixed> &$modify) : void
Parameters
$request : RequestInterface
$options : array<string|int, mixed>
$modify : array<string|int, mixed>

        
On this page

Search results