Skip to content

Proposal for new decorator to define HEAD operations #3976

@catalinaperalta

Description

@catalinaperalta

Clear and concise description of the problem

We recently worked with some HEAD operation definitions and thought that it would be useful to have a decorator that allows folks to decorate a given operation with an @headOp decorator, which would automatically signal that this service also supports HEAD operations for that endpoint and automatically considers all of the headers for that operation so the true definition lives in one place and it's easier to maintain the supported set of headers in one definition.

Checklist

  • Follow our Code of Conduct
  • Check that this issue is about the Azure libraries for typespec. For feature request in the typespec language or core libraries file it in the TypeSpec repo
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Metadata

Metadata

Assignees

Labels

design:neededA design request has been raised that needs a proposallib:azure-coreIssues for @azure-tools/typespec-azure-core librarytriaged:core

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions