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

[Bug]: http: Missing HTTP verbs #5212

Open
4 tasks done
oddsund opened this issue Nov 27, 2024 · 2 comments
Open
4 tasks done

[Bug]: http: Missing HTTP verbs #5212

oddsund opened this issue Nov 27, 2024 · 2 comments
Assignees
Labels
feature New feature or request lib:http

Comments

@oddsund
Copy link

oddsund commented Nov 27, 2024

Describe the bug

The decorators for HTTP endpoints are missing three verbs according to RFC9110 9.3;

  • CONNECT
  • OPTIONS
  • TRACE

Reproduction

Playground link

Checklist

@oddsund oddsund added the bug Something isn't working label Nov 27, 2024
@oddsund
Copy link
Author

oddsund commented Nov 27, 2024

I'm open to contributing a fix, and it looks like PR #3717 points to where in the code the verbs should be placed.

I reckon this is the document that has to be updated as well; https://github.com/microsoft/typespec/blob/main/website/src/content/docs/docs/libraries/http/reference/decorators.md

I see that there are multiple parts of the codebase that handle HTTP verbs in one way or the other as well, and with different sets of verbs supported/used, but this issue has been intentionally limited to the http library.

@oddsund oddsund changed the title [Bug]: Missing HTTP verbs [Bug]: http: Missing HTTP verbs Nov 27, 2024
@markcowl markcowl added feature New feature or request lib:http and removed bug Something isn't working labels Dec 2, 2024
@markcowl
Copy link
Contributor

markcowl commented Dec 2, 2024

@bterlson Please respond

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request lib:http
Projects
None yet
Development

No branches or pull requests

3 participants