frank-fs/frank — comment on commit 2a15d848e56183efbecf3ee842f03c3ea1838949
File: src/Frank.fs line 36
By panesofglass:

This is wrong. It should be:

type HttpApplication = HttpRequestMessage -> HttpRequestHandler -> HttpResponseWriter -> unit

where

type HttpRequestHandler = HttpContent -> HttpResponseMessage
type HttpResponseWriter = HttpResponseMessage -> unit

Again, separating out the `HttpRequestHandler` from a simpler signature of `HttpRequestMessage -> HttpResponseMessage` gives the initial function the chance to select the appropriate handler based on the request headers as well as provide an additional interception mechanism.