webapi: add Request#formData and Response#formData#2969
Conversation
Introduces another url decoder also, we may like to unite these at some point.
Idea is to have reusable parsing utilities here; not sure on the name, we can surely go for something else.
Adds `initFromUrlEncoded` and `initFromMultipart`; which are required for `Request#formData`.
Allows parsing `Content-Type` header value with ease.
81b4f15 to
3f09e00
Compare
|
I'm not smart enough to review this. Maybe @krichprollsch can take a look. Claude did find some issues though: Confirmed bugs (verified by running the built binary)
And claude's comment on the code:
|
This PR adds
Request#formDataandResponse#formDatamethods. also introducessimd.zigfor reusable HTTP-related parsers, idea is to move away from one-off parsers created at each file to more generalized ones here.