| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // Copied from https://github.com/aspnet/AspNetCore/tree/master/src/Http/Headers/src |
| | 5 | |
|
| | 6 | | #pragma warning disable CA1802 // Mark field as const |
| | 7 | |
|
| | 8 | | namespace Azure.Core.Http.Multipart |
| | 9 | | { |
| | 10 | | internal static class HeaderNames |
| | 11 | | { |
| | 12 | | // Use readonly statics rather than constants so ReferenceEquals works |
| 0 | 13 | | public static readonly string Accept = "Accept"; |
| 0 | 14 | | public static readonly string AcceptCharset = "Accept-Charset"; |
| 0 | 15 | | public static readonly string AcceptEncoding = "Accept-Encoding"; |
| 0 | 16 | | public static readonly string AcceptLanguage = "Accept-Language"; |
| 0 | 17 | | public static readonly string AcceptRanges = "Accept-Ranges"; |
| 0 | 18 | | public static readonly string AccessControlAllowCredentials = "Access-Control-Allow-Credentials"; |
| 0 | 19 | | public static readonly string AccessControlAllowHeaders = "Access-Control-Allow-Headers"; |
| 0 | 20 | | public static readonly string AccessControlAllowMethods = "Access-Control-Allow-Methods"; |
| 0 | 21 | | public static readonly string AccessControlAllowOrigin = "Access-Control-Allow-Origin"; |
| 0 | 22 | | public static readonly string AccessControlExposeHeaders = "Access-Control-Expose-Headers"; |
| 0 | 23 | | public static readonly string AccessControlMaxAge = "Access-Control-Max-Age"; |
| 0 | 24 | | public static readonly string AccessControlRequestHeaders = "Access-Control-Request-Headers"; |
| 0 | 25 | | public static readonly string AccessControlRequestMethod = "Access-Control-Request-Method"; |
| 0 | 26 | | public static readonly string Age = "Age"; |
| 0 | 27 | | public static readonly string Allow = "Allow"; |
| 0 | 28 | | public static readonly string Authority = ":authority"; |
| 0 | 29 | | public static readonly string Authorization = "Authorization"; |
| 0 | 30 | | public static readonly string CacheControl = "Cache-Control"; |
| 0 | 31 | | public static readonly string Connection = "Connection"; |
| 0 | 32 | | public static readonly string ContentDisposition = "Content-Disposition"; |
| 0 | 33 | | public static readonly string ContentEncoding = "Content-Encoding"; |
| 0 | 34 | | public static readonly string ContentLanguage = "Content-Language"; |
| 0 | 35 | | public static readonly string ContentLength = "Content-Length"; |
| 0 | 36 | | public static readonly string ContentLocation = "Content-Location"; |
| 0 | 37 | | public static readonly string ContentMD5 = "Content-MD5"; |
| 0 | 38 | | public static readonly string ContentRange = "Content-Range"; |
| 0 | 39 | | public static readonly string ContentSecurityPolicy = "Content-Security-Policy"; |
| 0 | 40 | | public static readonly string ContentSecurityPolicyReportOnly = "Content-Security-Policy-Report-Only"; |
| 0 | 41 | | public static readonly string ContentType = "Content-Type"; |
| 0 | 42 | | public static readonly string CorrelationContext = "Correlation-Context"; |
| 0 | 43 | | public static readonly string Cookie = "Cookie"; |
| 0 | 44 | | public static readonly string Date = "Date"; |
| 0 | 45 | | public static readonly string DNT = "DNT"; |
| 0 | 46 | | public static readonly string ETag = "ETag"; |
| 0 | 47 | | public static readonly string Expires = "Expires"; |
| 0 | 48 | | public static readonly string Expect = "Expect"; |
| 0 | 49 | | public static readonly string From = "From"; |
| 0 | 50 | | public static readonly string Host = "Host"; |
| 0 | 51 | | public static readonly string KeepAlive = "Keep-Alive"; |
| 0 | 52 | | public static readonly string IfMatch = "If-Match"; |
| 0 | 53 | | public static readonly string IfModifiedSince = "If-Modified-Since"; |
| 0 | 54 | | public static readonly string IfNoneMatch = "If-None-Match"; |
| 0 | 55 | | public static readonly string IfRange = "If-Range"; |
| 0 | 56 | | public static readonly string IfUnmodifiedSince = "If-Unmodified-Since"; |
| 0 | 57 | | public static readonly string LastModified = "Last-Modified"; |
| 0 | 58 | | public static readonly string Location = "Location"; |
| 0 | 59 | | public static readonly string MaxForwards = "Max-Forwards"; |
| 0 | 60 | | public static readonly string Method = ":method"; |
| 0 | 61 | | public static readonly string Origin = "Origin"; |
| 0 | 62 | | public static readonly string Path = ":path"; |
| 0 | 63 | | public static readonly string Pragma = "Pragma"; |
| 0 | 64 | | public static readonly string ProxyAuthenticate = "Proxy-Authenticate"; |
| 0 | 65 | | public static readonly string ProxyAuthorization = "Proxy-Authorization"; |
| 0 | 66 | | public static readonly string Range = "Range"; |
| 0 | 67 | | public static readonly string Referer = "Referer"; |
| 0 | 68 | | public static readonly string RetryAfter = "Retry-After"; |
| 0 | 69 | | public static readonly string RequestId = "Request-Id"; |
| 0 | 70 | | public static readonly string Scheme = ":scheme"; |
| 0 | 71 | | public static readonly string SecWebSocketAccept = "Sec-WebSocket-Accept"; |
| 0 | 72 | | public static readonly string SecWebSocketKey = "Sec-WebSocket-Key"; |
| 0 | 73 | | public static readonly string SecWebSocketProtocol = "Sec-WebSocket-Protocol"; |
| 0 | 74 | | public static readonly string SecWebSocketVersion = "Sec-WebSocket-Version"; |
| 0 | 75 | | public static readonly string Server = "Server"; |
| 0 | 76 | | public static readonly string SetCookie = "Set-Cookie"; |
| 0 | 77 | | public static readonly string Status = ":status"; |
| 0 | 78 | | public static readonly string StrictTransportSecurity = "Strict-Transport-Security"; |
| 0 | 79 | | public static readonly string TE = "TE"; |
| 0 | 80 | | public static readonly string Trailer = "Trailer"; |
| 0 | 81 | | public static readonly string TransferEncoding = "Transfer-Encoding"; |
| 0 | 82 | | public static readonly string Translate = "Translate"; |
| 0 | 83 | | public static readonly string TraceParent = "traceparent"; |
| 0 | 84 | | public static readonly string TraceState = "tracestate"; |
| 0 | 85 | | public static readonly string Upgrade = "Upgrade"; |
| 0 | 86 | | public static readonly string UpgradeInsecureRequests = "Upgrade-Insecure-Requests"; |
| 0 | 87 | | public static readonly string UserAgent = "User-Agent"; |
| 0 | 88 | | public static readonly string Vary = "Vary"; |
| 0 | 89 | | public static readonly string Via = "Via"; |
| 0 | 90 | | public static readonly string Warning = "Warning"; |
| 0 | 91 | | public static readonly string WebSocketSubProtocols = "Sec-WebSocket-Protocol"; |
| 0 | 92 | | public static readonly string WWWAuthenticate = "WWW-Authenticate"; |
| 0 | 93 | | public static readonly string XFrameOptions = "X-Frame-Options"; |
| | 94 | | } |
| | 95 | | } |