-
Notifications
You must be signed in to change notification settings - Fork 11k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[5.5] Allow default headers to be sent with requests #20590
[5.5] Allow default headers to be sent with requests #20590
Conversation
I'd like to see a |
I would rather see it clear the headers after each test. |
@DCzajkowski in the @taylorotwell what worries me is if the user needs to clear the headers on the same test, in another request. Any ideas? Edit: |
Wouldn't they just call ->clearHeaders() manually in that case? |
@taylorotwell oh, I thought you were saying you would rather not have the clearHeaders method and just have it reset after each test. I believe the way it is set up it resets after each test? i can test it once I get home |
Added a commit to flush the headers on the |
This PR allows default headers to be sent with the requests. So, instead of having to override the
call
method or having to use something asYou can do
You can also clean the headers with
$this->cleanHeaders();
I've been having to send default headers quite a lot on an app and thought it would be cool to have it on the core. let me know what you all think