Skip to content

Extend apis of low level serve functions to accept parser configuration #131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
cprussin opened this issue Dec 21, 2018 · 1 comment
Open

Comments

@cprussin
Copy link
Collaborator

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.

@citizengabe
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants