Skip to content
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

reset headers info is missing #51

Closed
RajatBhardwaj007 opened this issue Jul 17, 2024 · 2 comments
Closed

reset headers info is missing #51

RajatBhardwaj007 opened this issue Jul 17, 2024 · 2 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@RajatBhardwaj007
Copy link

hi. I am not able to find reset headers info anywhere. Basically let's say in my test file, I am doing,

request.setDefaultHeaders({ 'X-API-KEY': 'api_key', });

and I want that after this file executes, this header gets reset. I tried with request.setDefaultHeaders({}) but that didn't help. I can see same header being populated in other test files.

@ASaiAnudeep
Copy link
Member

ASaiAnudeep commented Jul 17, 2024

You can delete an existing default header via - removeDefaultHeaders

I will update the docs, sometime this week. Or feel free to raise a PR with the updated docs.

@leelaprasadv leelaprasadv self-assigned this Aug 18, 2024
@leelaprasadv leelaprasadv added the documentation Improvements or additions to documentation label Aug 18, 2024
@leelaprasadv
Copy link
Member

leelaprasadv commented Aug 18, 2024

Closing as @RajatBhardwaj007 updated the docs #52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants