I would like to have generic way of parsing http request line:
GET /foo?bar=baz HTTP/1.1
would be parsed into object with properties: path
, query parameters
.
I know that I could do it manually but I wonder if there is a library for that. There is bunch od libraries parsing urls but is there any parsing http requests?