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

Enable URI Modification in Python Server Middleware #3005

Closed
drganjoo opened this issue Sep 27, 2023 · 0 comments · Fixed by #3002
Closed

Enable URI Modification in Python Server Middleware #3005

drganjoo opened this issue Sep 27, 2023 · 0 comments · Fixed by #3002
Assignees
Labels
python-server Python server SDK

Comments

@drganjoo
Copy link
Contributor

Currently, Python server implementations do not permit modification of a request's URI within the middleware. This restriction limits the middleware's ability to dynamically redirect the request to a different handler based on some condition.

Motivation

This enhancement aims to increase routing flexibility and offer more control to developers for handling requests in Python server implementations.

Allowing URI modification in the middleware would enhance routing flexibility. Specifically, this feature would enable middleware components to dynamically change the handler responsible for processing a given request by altering its URI. Additionally, it would provide server implementations the option to treat URIs with trailing slashes as equivalent to those without, simply by removing the trailing slash.

@drganjoo drganjoo self-assigned this Sep 27, 2023
@drganjoo drganjoo added the python-server Python server SDK label Sep 27, 2023
@drganjoo drganjoo linked a pull request Sep 27, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python-server Python server SDK
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant