Skip to content

5.0.0-rc.9

Pre-release
Pre-release
Compare
Choose a tag to compare
@scottoffen scottoffen released this 25 Feb 06:20
· 10 commits to main since this release
ca31d7d

In addition to numerous typos, formatting and spacing issues fixed:

  • RouteScanner now automatically ignores the Grapeseed assembly

  • On startup, if content folders have been added, a reminder is added to information log to also call the server.UseContentFolders() middleware.

  • 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.

Updates to the Sample project:

  • Adds working NLog configuration to sample project

  • Added sample resources for parsing multipart data using HttpMultipartParser (see on GitHub)