purescript-httpure icon indicating copy to clipboard operation
purescript-httpure copied to clipboard

Extend apis of low level serve functions to accept parser configuration

Open cprussin opened this issue 7 years ago • 1 comments

Per @paluh in #129:

Maybe we can extend low level API of serve' and serveSecure' so they accept additional configuration which can be used in our final fromHTTPRequest for parsing HTTP.Request parts. Then we can keep our nice default high level API but also allow users to provide their own parsers so they can avoid additional per request parsing from our side which they are not interested in.

cprussin avatar Dec 21 '18 18:12 cprussin

The middleware architecture could support this if the body was a concrete type instead of a typeclass as discussed in #115.

citizengabe avatar Jun 02 '22 17:06 citizengabe