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
@multipartBody
@patch
@path
@post
@put
@query
@route
@server
@sharedRoute
@statusCode
@useAuth
Models
AcceptedResponse
ApiKeyAuth
AuthorizationCodeFlow
BadRequestResponse
BasicAuth
BearerAuth
Body
ClientCredentialsFlow
ConflictResponse
CreatedResponse
File
ForbiddenResponse
HeaderOptions
HttpPart
HttpPartOptions
ImplicitFlow
LocationHeader
MovedResponse
NoAuth
NoContentResponse
NotFoundResponse
NotModifiedResponse
OAuth2Auth
OkResponse
OpenIdConnectAuth
PasswordFlow
PathOptions
PlainData
QueryOptions
Response
UnauthorizedResponse