Skip to content

How to parse query string or query params of a Request object? #164

Answered by ioquatix
postmodern asked this question in Q&A
Discussion options

You must be logged in to vote

I did not want to mix URL specifications with HTTP specifications, however there is some support for it in the protocol-http gem. Probably we should make a more extensive gem for this - e.g. parsing out form data and so on.

https://socketry.github.io/protocol-http/guides/getting-started/index#url-parsing

I know this isn't probably the answer you were looking for, but URL parsing (and caching, and form data) is a Pandora's box I didn't want to open in the core interfaces for request/response, at least not until I had a good idea of how to do it correctly.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@postmodern
Comment options

Answer selected by postmodern
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants