We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea83b54 commit 3e31a5dCopy full SHA for 3e31a5d
src/Browser.php
@@ -734,12 +734,7 @@ public function withResponseBuffer($maximumSize)
734
* ```php
735
* $browser = $browser->withHeader('User-Agent', 'ACME');
736
*
737
- * $browser->get($url)->then(function (Psr\Http\Message\ResponseInterface $response) {
738
- * //will contain the header User-Agent with the value ACME
739
- * var_dump($response);
740
- * }, function (Exception $e) {
741
- * echo 'Error: ' . $e->getMessage() . PHP_EOL;
742
- * });
+ * $browser->get($url)->then(…);
743
* ```
744
745
* Note that the new header will overwrite any headers previously set with
0 commit comments