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

Add support for setting cookies in responses #23

Open
modernist opened this issue Apr 23, 2019 · 2 comments
Open

Add support for setting cookies in responses #23

modernist opened this issue Apr 23, 2019 · 2 comments

Comments

@modernist
Copy link

It would be great if one could configure endpoints to send cookies in the response.

@boyney123
Copy link
Owner

Hey @modernist

Got any ideas on how this would look?

For example:

Would this feature accept key, value pairs from the user on each response? and we could use res.cookie('cookieName', 'value'); something like this to send the values in the responses?

@modernist
Copy link
Author

I guess an interface similar to the one provided in Postman / Insomnia for setting cookies on requests would be adequate. So, a list of key/value pairs per endpoint would be more than enough as a first step. Later on it would be possible to define cookies that are sent on every endpoint, but whose value can be customized per endpoint, and finally perhaps create some rules that allow the generation of random values (e.g. numbers / strings / dates)

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

No branches or pull requests

2 participants