Copied!

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

  • final
CloneableInstantiable
Methods
public __construct(callable $nextHandler)
 
  • param callable(\RequestInterface, array): \PromiseInterface $nextHandler Next handler to invoke.
public __invoke(Psr\Http\Message\RequestInterface $request, array $options) : GuzzleHttp\Promise\PromiseInterface
Properties
private $nextHandler = NULL
 
  • var callable(\RequestInterface, array): \PromiseInterface
Methods
private addExpectHeader(Psr\Http\Message\RequestInterface $request, array $options, array $modify) : void
 

Add expect header

© 2026 Bruce Wells
Search Namespaces \ Classes
Configuration