mirror of
https://github.com/guzzle/guzzle.git
synced 2025-02-23 17:44:02 +01:00
Fix syntax errors
This commit is contained in:
parent
6d6c3a68fb
commit
fb449de675
@ -80,7 +80,7 @@ function that takes the following form.
|
||||
return function (callable $handler) {
|
||||
return function (RequestInterface $request, array $options) use ($handler) {
|
||||
return $handler($request, $options);
|
||||
}
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@ -106,7 +106,7 @@ Here's an example of adding a header to each request.
|
||||
) use ($handler, $header, $value) {
|
||||
$request = $request->withHeader($header, $value);
|
||||
return $handler($request, $options);
|
||||
}
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -86,7 +86,7 @@ pairs:
|
||||
UriInterface $uri
|
||||
) {
|
||||
echo 'Redirecting! ' . $request->getUri() . ' to ' . $uri . "\n";
|
||||
}
|
||||
};
|
||||
|
||||
$res = $client->request('GET', '/redirect/3', [
|
||||
'allow_redirects' => [
|
||||
|
Loading…
x
Reference in New Issue
Block a user