Skip to content
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

Create Http middleware functions in stdlib package #3892

Closed
pbiggar opened this issue May 25, 2022 · 1 comment
Closed

Create Http middleware functions in stdlib package #3892

pbiggar opened this issue May 25, 2022 · 1 comment

Comments

@pbiggar
Copy link
Member

pbiggar commented May 25, 2022

We should allow multiple http frameworks, based on a middleware approach.

We should create a bare-bone http framework option for handlers. Instead of doing everything that the current one does, it would only read the headers, url, body (as bytes) from ASP.net.

The option for which middleware to choose would be made in the HTTP handler spec.

From there, we could provide many middleware functions that parse json, dynamically parse the body based on content-type, support CORS, handle compression, and everything else that our middleware does.

@StachuDotNet
Copy link
Member

folded this into #5261

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