How to parse query string or query params of a Request object? #164
-
I just noticed that the query portion (ex: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I did not want to mix URL specifications with HTTP specifications, however there is some support for it in the 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. |
Beta Was this translation helpful? Give feedback.
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.