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

Headers per Collection #70

Closed
moelena opened this issue Jul 10, 2023 · 5 comments
Closed

Headers per Collection #70

moelena opened this issue Jul 10, 2023 · 5 comments

Comments

@moelena
Copy link

moelena commented Jul 10, 2023

Hello,

thank you for providing this great tool.
Since I just switched from Postman and have to do repetitive steps to set up all the requests I need, I have a few suggestions. One of them:

In my API I have to do a login call first (and save the received token in an environment variable) and then call any other request. In every other request I have to set up the same headers: Authorization with token from the environment and custom headers.
It would be very nice, if I could define the headers in the collection. Or if I could set the headers with the request script (when it works collection-wide: #63).

@jonrosner
Copy link
Contributor

Thank you for the feedback. Highly appreciated. Would it be possible for you to create a separate issue for all of the feature requests so we could track them individually?

@moelena moelena changed the title Suggestions (headers, duplicating requests, toggle parameters) and problems Headers per Collection Jul 10, 2023
@moelena
Copy link
Author

moelena commented Jul 10, 2023

Sure, no problem. I also edited the text above.

@jonrosner
Copy link
Contributor

I'll look into how other tools do this. Right now having a collection-level request script method called setHeader makes the most sense to me.

@moelena
Copy link
Author

moelena commented Jul 10, 2023

That would be totally fine for me. In Postman I did that also per script:
pm.request.headers.add({key: 'User-Agent', value: 'myAgent' });

@jonrosner
Copy link
Contributor

Collection wide headers are added in the newest version.

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

No branches or pull requests

2 participants