Adds support for application/x-www-form-urlencoded and multipart/form-data content types.
x-www-form-encoded is a simple query string we parse
multipart form data is in a different format - there are parsers available, but they're mainly designed as streaming consumers to be used in web frameworks. Wrote a more specific one for our usecase (i.e. pull out field name and value)
Note that these fields are similar to query parameters (i.e. you can send multiple keys and some parsers will handle as arrays, etc) but we haven't handled it here since there are many ways to define arrays in forms and or JSON objects.
🍗 Description
What does this PR do? Anything folks should know?
Adds support for
application/x-www-form-urlencoded
andmultipart/form-data
content types.Note that these fields are similar to query parameters (i.e. you can send multiple keys and some parsers will handle as arrays, etc) but we haven't handled it here since there are many ways to define arrays in forms and or JSON objects.
📚 References
Links to relevant docs (Notion, Twist, GH issues, etc.), if applicable. https://github.com/opticdev/optic/issues/2535
👹 QA
How can other humans verify that this PR is correct?