public static function Middleware::prepareBody in Lockr 7.3
This middleware adds a default content-type if possible, a default content-length or transfer-encoding header, and the expect header.
Return value
callable
1 call to Middleware::prepareBody()
- HandlerStack::create in vendor/
guzzlehttp/ guzzle/ src/ HandlerStack.php - Creates a default handler stack that can be used by clients.
File
- vendor/
guzzlehttp/ guzzle/ src/ Middleware.php, line 215
Class
- Middleware
- Functions used to create and wrap handlers with handler middleware.
Namespace
GuzzleHttpCode
public static function prepareBody() {
return function (callable $handler) {
return new PrepareBodyMiddleware($handler);
};
}