You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$browser = newReact\Http\Browser();
$browser = $browser->withProtocolVersion('1.1'); // already supported$browser = $browser->withHeader('User-Agent', 'ACME'); // could be useful?$browser->get($url)->then(…);
This isn't currently supported, but seems reasonable and would also allow other packages to take advantage of custom HTTP request headers. What do you think about this?
The text was updated successfully, but these errors were encountered:
👋 Unsetting a default header, would that happen through […]
$browser = $browser->withoutHeader('User-Agent')
@bartvanhoutte The idea is definitely to keep this in line with our existing interfaces. In particular, PSR-7 (HTTP messages) already define a withoutHeader() method, so I would absolutely go for this as well here 👍
Here's what this could potentially look like:
This isn't currently supported, but seems reasonable and would also allow other packages to take advantage of custom HTTP request headers. What do you think about this?
The text was updated successfully, but these errors were encountered: