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:
commit
e7dea7f16d
@ -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"}
|
||||
|
Loading…
x
Reference in New Issue
Block a user