Overview
TypeSpec HTTP protocol binding
Install
Section titled “Install”npm install @typespec/http
npm install --save-peer @typespec/http
TypeSpec.Http
Section titled “TypeSpec.Http”Decorators
Section titled “Decorators”@body
@bodyIgnore
@bodyRoot
@cookie
@delete
@get
@head
@header
@multipartBody
@patch
@path
@post
@put
@query
@route
@server
@sharedRoute
@statusCode
@useAuth
Models
Section titled “Models”AcceptedResponse
ApiKeyAuth
AuthorizationCodeFlow
BadRequestResponse
BasicAuth
BearerAuth
Body
ClientCredentialsFlow
ConflictResponse
CookieOptions
CreatedResponse
File
ForbiddenResponse
HeaderOptions
HttpPart
HttpPartOptions
ImplicitFlow
Link
LocationHeader
MergePatchCreateOrUpdate
MergePatchUpdate
MovedResponse
NoAuth
NoContentResponse
NotFoundResponse
NotModifiedResponse
OAuth2Auth
OkResponse
OpenIdConnectAuth
PasswordFlow
PatchOptions
PathOptions
PlainData
QueryOptions
Response
UnauthorizedResponse