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

[Feature Request] Allow the ability of sending the headers from the same route #324

Closed
sansyrox opened this issue Nov 29, 2022 · 0 comments

Comments

@sansyrox
Copy link
Member

Current Behavior

Currently, you cannot send the custom headers in the response from you route. Add the ability to do that.

Desired Behavior

Something along these lines, from our discussion on discord with @cirospaciari

@app.get('/plaintext')
def plaintext() -> str:
    return { "body": "Hello, world!", "headers": { "Content-Type": "plain/text", "Custom": "My Custom Value" }}  

Screenshots / Mockups

Alternatives


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

1 participant