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

How to add a private cookie to a LocalRequest? #368

Closed
golddranks opened this issue Jul 31, 2017 · 1 comment
Closed

How to add a private cookie to a LocalRequest? #368

golddranks opened this issue Jul 31, 2017 · 1 comment
Labels
enhancement A minor feature request help wanted Contributions to this issue are needed

Comments

@golddranks
Copy link
Contributor

Using Rocket 0.3.

I tried to look for a way to add private cookie to a LocalRequest for testing, but it seems that the only way to get private cookies for tests is to generate them first on the server (simulate a session-initiating request). It would be helpful if adding private cookies would be directly available for testing.

I think it would be sufficient to be documented in the API docs, maybe as a method cookie_private on LocalRequest.

@SergioBenitez SergioBenitez added the enhancement A minor feature request label Jul 31, 2017
@SergioBenitez SergioBenitez added the help wanted Contributions to this issue are needed label Aug 22, 2017
@SergioBenitez
Copy link
Member

This should definitely be possible and shouldn't be difficult to implement. If anyone wants to tackle this, I'd be more than happy to review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A minor feature request help wanted Contributions to this issue are needed
Projects
None yet
Development

No branches or pull requests

2 participants