forked from aspnet/AspNetWebStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHttpPropertyKeys.cs
More file actions
99 lines (82 loc) · 4.39 KB
/
HttpPropertyKeys.cs
File metadata and controls
99 lines (82 loc) · 4.39 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Net.Http;
using System.Threading;
using System.Web.Http.Controllers;
using System.Web.Http.Routing;
namespace System.Web.Http.Hosting
{
/// <summary>
/// Provides common keys for properties stored in the <see cref="HttpRequestMessage.Properties"/>
/// </summary>
public static class HttpPropertyKeys
{
/// <summary>
/// Provides a key for the <see cref="HttpConfiguration"/> associated with this request.
/// </summary>
public static readonly string HttpConfigurationKey = "MS_HttpConfiguration";
/// <summary>
/// Provides a key for the <see cref="IHttpRouteData"/> associated with this request.
/// </summary>
public static readonly string HttpRouteDataKey = "MS_HttpRouteData";
/// <summary>
/// Provides a key for the <see cref="System.Web.Http.Controllers.HttpActionDescriptor"/> associated with this request.
/// </summary>
public static readonly string HttpActionDescriptorKey = "MS_HttpActionDescriptor";
/// <summary>
/// Provides a key for the current <see cref="SynchronizationContext"/> stored in <see cref="HttpRequestMessage.Properties"/>.
/// If <see cref="SynchronizationContext.Current"/> is <c>null</c> then no context is stored.
/// </summary>
public static readonly string SynchronizationContextKey = "MS_SynchronizationContext";
/// <summary>
/// Provides a key for the collection of resources that should be disposed when a request is disposed.
/// </summary>
public static readonly string DisposableRequestResourcesKey = "MS_DisposableRequestResources";
/// <summary>
/// Provides a key for the dependency scope for this request.
/// </summary>
public static readonly string DependencyScope = "MS_DependencyScope";
/// <summary>
/// Provides a key for the client certificate for this request.
/// </summary>
public static readonly string ClientCertificateKey = "MS_ClientCertificate";
/// <summary>
/// Provides a key for a delegate which can retrieve the client certificate for this request.
/// </summary>
public static readonly string RetrieveClientCertificateDelegateKey = "MS_RetrieveClientCertificateDelegate";
/// <summary>
/// Provides a key for the <see cref="HttpRequestContext"/> for this request.
/// </summary>
public static readonly string RequestContextKey = "MS_RequestContext";
/// <summary>
/// Provides a key for the <see cref="Guid"/> stored in <see cref="HttpRequestMessage.Properties"/>.
/// This is the correlation id for that request.
/// </summary>
public static readonly string RequestCorrelationKey = "MS_RequestId";
/// <summary>
/// Provides a key that indicates whether the request originates from a local address.
/// </summary>
public static readonly string IsLocalKey = "MS_IsLocal";
/// <summary>
/// Provides a key that indicates whether the request failed to match a route.
/// </summary>
public static readonly string NoRouteMatched = "MS_NoRouteMatched";
/// <summary>
/// Provides a key that indicates whether error details are to be included in the response for this HTTP request.
/// </summary>
public static readonly string IncludeErrorDetailKey = "MS_IncludeErrorDetail";
/// <summary>
/// Provides a key for the parsed query string stored in <see cref="HttpRequestMessage.Properties"/>.
/// </summary>
public static readonly string RequestQueryNameValuePairsKey = "MS_QueryNameValuePairs";
/// <summary>
/// Provides the original query string for the parsed query string stored in <see cref="HttpRequestMessage.Properties"/>
/// under the key <see cref="HttpPropertyKeys.RequestQueryNameValuePairsKey" />.
/// </summary>
public static readonly string CachedRequestQueryKey = "MS_CachedRequestQuery";
/// <summary>
/// Provides a key that indicates whether the request is a batch request.
/// </summary>
public static readonly string IsBatchRequest = "MS_BatchRequest";
}
}