-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathWellKnownHttpHeaders.cs
More file actions
67 lines (56 loc) · 2.19 KB
/
WellKnownHttpHeaders.cs
File metadata and controls
67 lines (56 loc) · 2.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// ReSharper disable once CheckNamespace
namespace Microsoft.AspNetCore.Http;
/// <summary>
/// Defines well-known HTTP header names used throughout the REST API framework.
/// </summary>
/// <remarks>
/// These header names follow common conventions for distributed tracing, pagination,
/// conditional requests, and identity propagation in microservice architectures.
/// </remarks>
public static class WellKnownHttpHeaders
{
/// <summary>
/// The correlation ID header name for distributed tracing across service boundaries.
/// </summary>
public const string CorrelationId = "x-correlation-id";
/// <summary>
/// The request ID header name for tracking individual requests.
/// </summary>
public const string RequestId = "x-request-id";
/// <summary>
/// The on-behalf-of header name for identity delegation in service-to-service calls.
/// </summary>
public const string OnBehalfOf = "x-on-behalf-of";
/// <summary>
/// The calling identity header name for tracking the authenticated user identity.
/// </summary>
public const string CallingIdentity = "x-calling-identity";
/// <summary>
/// The maximum item count header name for pagination requests.
/// </summary>
public const string MaxItemCount = "x-max-item-count";
/// <summary>
/// The continuation token header name for cursor-based pagination.
/// </summary>
public const string Continuation = "x-continuation";
/// <summary>
/// The filename header name for file download operations.
/// </summary>
public const string Filename = "x-filename";
/// <summary>
/// The standard separator for multiple header values.
/// </summary>
public const string ValueSeparator = ", ";
/// <summary>
/// The If-Match header name for conditional requests based on ETag.
/// </summary>
public const string IfMatch = "If-Match";
/// <summary>
/// The If-None-Match header name for conditional requests based on ETag.
/// </summary>
public const string IfNoneMatch = "If-NoneMatch";
/// <summary>
/// The ETag header name for entity versioning and caching.
/// </summary>
public const string ETag = "etag";
}