@@ -9,48 +9,19 @@ pub use typespec_client_core::http::headers::*;
99// HTTP headers are case-insensitive.
1010// We use lowercase below for simple comparisons downstream.
1111
12- pub const ACCOUNT_KIND : HeaderName = HeaderName :: from_static ( "x-ms-account-kind" ) ;
13- pub ( crate ) const ACTIVITY_ID : HeaderName = HeaderName :: from_static ( "x-ms-activity-id" ) ;
14- pub ( crate ) const APP : HeaderName = HeaderName :: from_static ( "x-ms-app" ) ;
15- pub const APPEND_POSITION : HeaderName = HeaderName :: from_static ( "x-ms-blob-condition-appendpos" ) ; // cspell:ignore appendpos
16- pub const AZURE_ASYNCOPERATION : HeaderName = HeaderName :: from_static ( "azure-asyncoperation" ) ;
17- pub ( crate ) const BLOB_SEQUENCE_NUMBER : HeaderName =
18- HeaderName :: from_static ( "x-ms-blob-sequence-number" ) ;
12+ /// x-ms-client-request-id header. See <https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#distributed-tracing--telemetry> for more details.
1913pub const CLIENT_REQUEST_ID : HeaderName = HeaderName :: from_static ( "x-ms-client-request-id" ) ;
20- pub ( crate ) const CLIENT_VERSION : HeaderName = HeaderName :: from_static ( "x-ms-client-version" ) ;
21- pub ( crate ) const CONTENT_DISPOSITION : HeaderName =
22- HeaderName :: from_static ( "x-ms-blob-content-disposition" ) ;
23- pub ( crate ) const CONTINUATION : HeaderName = HeaderName :: from_static ( "x-ms-continuation" ) ;
14+ /// x-ms-error-code header. See <https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors> for more details.
2415pub const ERROR_CODE : HeaderName = HeaderName :: from_static ( "x-ms-error-code" ) ;
25- pub ( crate ) const IF_SEQUENCE_NUMBER_EQ : HeaderName =
26- HeaderName :: from_static ( "x-ms-if-sequence-number-eq" ) ;
27- pub ( crate ) const IF_SEQUENCE_NUMBER_LE : HeaderName =
28- HeaderName :: from_static ( "x-ms-if-sequence-number-le" ) ;
29- pub ( crate ) const IF_SEQUENCE_NUMBER_LT : HeaderName =
30- HeaderName :: from_static ( "x-ms-if-sequence-number-lt" ) ;
31- pub ( crate ) const IF_TAGS : HeaderName = HeaderName :: from_static ( "x-ms-if-tags" ) ;
32- pub ( crate ) const LEASE_BREAK_PERIOD : HeaderName =
33- HeaderName :: from_static ( "x-ms-lease-break-period" ) ;
34- pub ( crate ) const LEASE_DURATION : HeaderName = HeaderName :: from_static ( "x-ms-lease-duration" ) ;
35- pub ( crate ) const LEASE_ID : HeaderName = HeaderName :: from_static ( "x-ms-lease-id" ) ;
36- pub ( crate ) const MAX_ITEM_COUNT : HeaderName = HeaderName :: from_static ( "x-ms-max-item-count" ) ;
16+ /// x-ms-date header.
3717pub const MS_DATE : HeaderName = HeaderName :: from_static ( "x-ms-date" ) ;
38- pub ( crate ) const MS_RANGE : HeaderName = HeaderName :: from_static ( "x-ms-range" ) ;
39- pub ( crate ) const PROPOSED_LEASE_ID : HeaderName = HeaderName :: from_static ( "x-ms-proposed-lease-id" ) ;
40- pub ( crate ) const RANGE_GET_CONTENT_CRC64 : HeaderName =
41- HeaderName :: from_static ( "x-ms-range-get-content-crc64" ) ;
18+ /// x-ms-request-id header. See <https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#distributed-tracing--telemetry> for more details.
4219pub ( crate ) const REQUEST_ID : HeaderName = HeaderName :: from_static ( "x-ms-request-id" ) ;
20+ /// retry-after-ms header.
4321pub const RETRY_AFTER_MS : HeaderName = HeaderName :: from_static ( "retry-after-ms" ) ;
44- pub ( crate ) const SOURCE_IF_MATCH : HeaderName = HeaderName :: from_static ( "x-ms-source-if-match" ) ;
45- pub ( crate ) const SOURCE_IF_MODIFIED_SINCE : HeaderName =
46- HeaderName :: from_static ( "x-ms-source-if-modified-since" ) ;
47- pub ( crate ) const SOURCE_IF_NONE_MATCH : HeaderName =
48- HeaderName :: from_static ( "x-ms-source-if-none-match" ) ;
49- pub ( crate ) const SOURCE_IF_UNMODIFIED_SINCE : HeaderName =
50- HeaderName :: from_static ( "x-ms-source-if-unmodified-since" ) ;
51- pub ( crate ) const SOURCE_LEASE_ID : HeaderName = HeaderName :: from_static ( "x-ms-source-lease-id" ) ;
52- pub ( crate ) const USER : HeaderName = HeaderName :: from_static ( "x-ms-user" ) ;
22+ /// x-ms-version header.
5323pub const VERSION : HeaderName = HeaderName :: from_static ( "x-ms-version" ) ;
24+ /// x-ms-retry-after-ms header.
5425pub const X_MS_RETRY_AFTER_MS : HeaderName = HeaderName :: from_static ( "x-ms-retry-after-ms" ) ;
5526
5627/// Constants related to the Content-Type header
@@ -62,11 +33,7 @@ pub mod content_type {
6233 // Form content types
6334 // https://www.w3.org/TR/html401/interact/forms.html#h-17.13.4
6435
36+ /// The content type for form payloads. See <https://www.w3.org/TR/html401/interact/forms.html#h-17.13.4> for more details.
6537 pub const APPLICATION_X_WWW_FORM_URLENCODED : HeaderValue =
6638 HeaderValue :: from_static ( "application/x-www-form-urlencoded" ) ;
6739}
68-
69- /// Constants related to query parameters
70- pub mod query_param {
71- pub const API_VERSION : & str = "api-version" ;
72- }
0 commit comments