1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-02-24 10:03:27 +01:00

Merge pull request #1705 from baijunyao/master

Update request-options.rst
This commit is contained in:
Márk Sági-Kazár 2016-12-27 11:24:35 +01:00 committed by GitHub
commit e7dea7f16d

View File

@ -557,7 +557,7 @@ over the wire.
$clientHandler = $client->getConfig('handler');
// Create a middleware that echoes parts of the request.
$tapMiddleware = Middleware::tap(function ($request) {
echo $request->getHeader('Content-Type');
echo $request->getHeaderLine('Content-Type');
// application/json
echo $request->getBody();
// {"foo":"bar"}