Overview
TypeSpec HTTP protocol binding
Install
- In a spec
- In a library
npm install @typespec/http
npm install --save-peer @typespec/http
TypeSpec.Http
Decorators
@body
@bodyIgnore
@bodyRoot
@delete
@get
@head
@header
@includeInapplicableMetadataInPayload
@patch
@path
@post
@put
@query
@route
@server
@sharedRoute
@statusCode
@useAuth
Models
AcceptedResponse
ApiKeyAuth
AuthorizationCodeFlow
BadRequestResponse
BasicAuth
BearerAuth
Body
ClientCredentialsFlow
ConflictResponse
CreatedResponse
ForbiddenResponse
HeaderOptions
ImplicitFlow
LocationHeader
MovedResponse
NoAuth
NoContentResponse
NotFoundResponse
NotModifiedResponse
OAuth2Auth
OkResponse
OpenIdConnectAuth
PasswordFlow
PlainData
QueryOptions
Response
UnauthorizedResponse