Overview
TypeSpec HTTP protocol binding
Install
Section titled “Install”npm install @typespec/httpnpm install --save-peer @typespec/httpTypeSpec.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”AcceptedResponseApiKeyAuthAuthorizationCodeFlowBadRequestResponseBasicAuthBearerAuthBodyClientCredentialsFlowConflictResponseCookieOptionsCreatedResponseFileForbiddenResponseHeaderOptionsHttpPartHttpPartOptionsImplicitFlowLinkLocationHeaderMergePatchCreateOrUpdateMergePatchUpdateMovedResponseNoAuthNoContentResponseNotFoundResponseNotModifiedResponseOAuth2AuthOkResponseOpenIdConnectAuthPasswordFlowPatchOptionsPathOptionsPlainDataQueryOptionsResponseUnauthorizedResponse