Skip to content

0.2.0.0

Latest
Compare
Choose a tag to compare
@Disco-Dave Disco-Dave released this 12 Sep 01:42
060fd48

Added

  • Added a Request type that contains all the info about a request including its trace id.
  • Added a Response type that contains info about a response, including how long it took the server to respond.
  • traceRequest to convert from a Network.Wai.Request to a Request.
  • traceResponse to convert from a Network.Wai.Response to a Response.
  • Added the Options type, which provides more flexibility to customize how the request and response are handled.
  • Added more formatting options for both the request and response.
  • Added middlewareCustom for full customization.

Changed

  • The default formats used by middleware have been changed. See defaultRequestFormat and defaultResponseFormat for the new formats.

Removed

  • middlewareWithFormatter has been removed. Please use middlewareCustom instead.