Skip to content

Conversation

@ericproulx
Copy link
Contributor

This PR delegates cookies to Grape::Request like the actual params and headers are. Minor tweaks have been made in Grape::Cookies:

  • Rack's cookies will be read only if the API calls cookies
  • Response cookies management is now done with a Set instead of Hash containing true
  • Uses Forwardable module

@ericproulx ericproulx requested a review from dblock March 23, 2025 16:19
@ericproulx ericproulx marked this pull request as ready for review March 23, 2025 16:19
Copy link
Member

@dblock dblock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Took me a moment to grok through this otherwise simple change, see if you want any of my suggestions?

@ericproulx
Copy link
Contributor Author

Took me a moment to grok through this otherwise simple change, see if you want any of my suggestions?

Great suggestion! I did some rework

@dblock
Copy link
Member

dblock commented Mar 28, 2025

Took me a moment to grok through this otherwise simple change, see if you want any of my suggestions?

Great suggestion! I did some rework

Much better!

@dblock dblock merged commit 809add4 into ruby-grape:master Mar 28, 2025
63 checks passed
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

Successfully merging this pull request may close these issues.

2 participants