Closed zhangzq closed 4 years ago
Content of POST's body depends on content-type
HTTP-field. Different types of data have different representations.
If you're speaking about parsing the content of HTML form in POST's body then it depends on the value of content-type
as described here:
application/x-www-form-urlencoded
you can try to use restinio::parse_query
or restinio::try_parse_query
with x_www_form_urlencoded
trait;multipart/form-data
you can try to use HTTP-field helpers like detect_boundary_for_multipart_body + split_multipart_body, or enumerate_parts. See also content-disposition helper.@zhangzq Can this issue be closed?
I'm looking for utility to parse body of post request, but found nothing in document.