Skip to content

Feature request: Add new decorator to support HEAD verb on REST API #4264

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

Closed
2 tasks done
danjhd opened this issue May 3, 2024 · 1 comment · Fixed by #4275
Closed
2 tasks done

Feature request: Add new decorator to support HEAD verb on REST API #4264

danjhd opened this issue May 3, 2024 · 1 comment · Fixed by #4275
Labels
feature-request feature request

Comments

@danjhd
Copy link

danjhd commented May 3, 2024

Use case

I am creating a REST API on API Gateway and would like to implement the HEAD method

Solution/User Experience

I would like to be able to use @app.head("/sources") to decorate my function method in exactly the same way that i can use @app.get("/sources") to decorate a GET request.

Alternative solutions

I am currently using the route option `@app.route("/sources", method=["HEAD"])` which works fine but it would be nice to support HEAD in the same way as the other verbs you currently support.

Thank you!

Acknowledgment

Copy link
Contributor

github-actions bot commented May 6, 2024

⚠️COMMENT VISIBILITY WARNING⚠️

This issue is now closed. Please be mindful that future comments are hard for our team to see.

If you need more assistance, please either tag a team member or open a new issue that references this one.

If you wish to keep having a conversation with other community members under this issue feel free to do so.

@heitorlessa heitorlessa removed the triage Pending triage from maintainers label Jun 10, 2024
@heitorlessa heitorlessa moved this from Coming soon to Shipped in Powertools for AWS Lambda (Python) Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request feature request
Projects
Status: Shipped
Development

Successfully merging a pull request may close this issue.

2 participants