Skip to content
Snippets Groups Projects
Commit 27cef5c8 authored by mechanik20051988's avatar mechanik20051988 Committed by Kirill Yukhin
Browse files

uri: implement ability to parse URI query paramters

Previously, the part of the URI string that comes after the first '?' was
saved as a single unit in the field `query` as a part of `struct uri`. Now
an array of URI paramters has been added to the uri structure, and query is
subjected to the additional parsing and URI query parameters are extracted
from it. The separator symbol between URI query parameters is '&', the
separator symbol between parameter and it's value is '='. For example
URI = "/tmp/unix.sock?q1=v11&q1=v12&q2=v2" has two parameters: parameter
'q1' with two values 'v11' and 'v12' and parameter 'q2' with value 'v2'.

Part of #5928
Closes #1175
parent c65fd012
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment