Added middleware server.AutoParseFormUrlEncodedData(). Using this will automatically parse your url-encoded form data and store it in context.Locals as a IDictionary<string,string> under the key FormData. Does not work with multipart form data!
Added extension method IHttpRequest.ParseFormUrlEncodedData() which will return a the url-encoded form data as a IDictionary<string,string>. Because the input stream can only be read once, this method will only return data the first time it is called. It is recommended to use the aforementioned middleware instead of this method.
Added IHttpRequest.MultipartBoundary, which will contain the multipart boundary for easy access to parse multipart data.
Added middleware
server.AutoParseFormUrlEncodedData()
. Using this will automatically parse your url-encoded form data and store it incontext.Locals
as aIDictionary<string,string>
under the keyFormData
. Does not work with multipart form data!Added extension method
IHttpRequest.ParseFormUrlEncodedData()
which will return a the url-encoded form data as aIDictionary<string,string>
. Because the input stream can only be read once, this method will only return data the first time it is called. It is recommended to use the aforementioned middleware instead of this method.Added
IHttpRequest.MultipartBoundary
, which will contain the multipart boundary for easy access to parse multipart data.Added sample resources for parsing multipart data using HttpMultipartParser (see on GitHub)