Added a parse_query_string() example
Created by: vitor-alves
Hi
I added one more example that uses parse_query_string()
to parse the GET request parameters.
I think it might be useful for newcomers. It's a pretty common thing to do and I needed it in one of my projects and couldn't find any examples.
The following GET to path /parse
with parameters name=Mary
and lastName=Smith
localhost:8080/parse?name=Mary&lastName=Smith
will be parsed with parse_query_string()
and the name + lastName
will be returned as response.
Its similar to the John Smith example, but instead of parsing a JSON the query_string
is parsed.
I also fixed a few typos here and there.
Please consider this pull request, and thanks for this project. I have been using it a lot.