4 types derived from HttpWorkerRequest
System.Web (4)
Hosting\IIS7WorkerRequest.cs (1)
30
internal sealed class IIS7WorkerRequest :
HttpWorkerRequest
{
Hosting\ISAPIWorkerRequest.cs (1)
598
internal abstract class ISAPIWorkerRequest :
HttpWorkerRequest
{
Hosting\SimpleWorkerRequest.cs (1)
29
public class SimpleWorkerRequest :
HttpWorkerRequest
{
State\StateWorkerRequest.cs (1)
24
class StateHttpWorkerRequest :
HttpWorkerRequest
{
154 references to HttpWorkerRequest
System.ServiceModel.Activation (7)
System\ServiceModel\Activation\HostedHttpContext.cs (2)
871
return ((
HttpWorkerRequest
)provider.GetService(typeof(
HttpWorkerRequest
))).GetRemotePort();
System\ServiceModel\Activation\HostedHttpTransportManager.cs (5)
85
HttpWorkerRequest
workerRequest = (
HttpWorkerRequest
)provider.GetService(typeof(
HttpWorkerRequest
));
126
return ((
HttpWorkerRequest
)provider.GetService(typeof(
HttpWorkerRequest
))).RequestTraceIdentifier;
System.Web (146)
Cache\OutputCache.cs (1)
248
HttpWorkerRequest
wr = (context != null) ? context.WorkerRequest : null;
EtwTrace.cs (4)
218
internal static void Trace(EtwTraceType traceType,
HttpWorkerRequest
workerRequest)
223
internal static void Trace(EtwTraceType traceType,
HttpWorkerRequest
workerRequest, string data1)
228
internal static void Trace(EtwTraceType traceType,
HttpWorkerRequest
workerRequest, string data1, string data2)
233
internal static void Trace(EtwTraceType traceType,
HttpWorkerRequest
workerRequest, string data1, string data2, string data3, string data4)
Hosting\IIS7WorkerRequest.cs (20)
811
if ( index < 0 || index >=
HttpWorkerRequest
.ResponseHeaderMaximum ) {
2008
int knownIndex =
HttpWorkerRequest
.GetKnownRequestHeaderIndex(name);
2019
Debug.Assert(
HttpWorkerRequest
.HeaderUserAgent == 39, "HttpWorkerRequest.HeaderUserAgent == 39");
2021
if (index ==
HttpWorkerRequest
.HeaderUserAgent) {
2041
int knownIndex =
HttpWorkerRequest
.GetKnownResponseHeaderIndex(name);
2051
if (index ==
HttpWorkerRequest
.HeaderWwwAuthenticate
2052
|| index ==
HttpWorkerRequest
.HeaderSetCookie
2053
|| index ==
HttpWorkerRequest
.HeaderServer) {
2055
SetUnknownResponseHeader(
HttpWorkerRequest
.GetKnownResponseHeaderName(index), value, replace);
2124
int knownIndicesMaximum = forRequest ? IisRequestHeaderMaximum :
HttpWorkerRequest
.ResponseHeaderMaximum;
2154
Debug.Assert(
HttpWorkerRequest
.HeaderUserAgent == 39, "HttpWorkerRequest.HeaderUserAgent == 39");
2155
Debug.Assert(
HttpWorkerRequest
.RequestHeaderMaximum == 40, "HttpWorkerRequest.RequestHeaderMaximum == 40");
2156
if (index >
HttpWorkerRequest
.RequestHeaderMaximum) {
2161
name =
HttpWorkerRequest
.GetKnownRequestHeaderName(index);
2167
name =
HttpWorkerRequest
.GetKnownRequestHeaderName(
HttpWorkerRequest
.HeaderUserAgent);
2171
if (index >=
HttpWorkerRequest
.ResponseHeaderMaximum) {
2175
if (index ==
HttpWorkerRequest
.HeaderServer)
2178
name =
HttpWorkerRequest
.GetKnownResponseHeaderName(index);
2222
knownHeaderIndex =
HttpWorkerRequest
.HeaderSetCookie;
Hosting\IPipelineRuntime.cs (1)
326
HttpWorkerRequest
initWorkerRequest = new SimpleWorkerRequest("" /*page*/,
Hosting\ISAPIWorkerRequest.cs (3)
663
private
HttpWorkerRequest
.EndOfSendNotification _endOfRequestCallback;
1296
if (index ==
HttpWorkerRequest
.HeaderSetCookie) {
1475
public override void SetEndOfSendNotification(
HttpWorkerRequest
.EndOfSendNotification callback, Object extraData) {
HttpBufferlessInputStream.cs (3)
130
HttpWorkerRequest
wr = _context.WorkerRequest;
174
HttpWorkerRequest
wr = _context.WorkerRequest;
219
HttpWorkerRequest
wr = _context.WorkerRequest;
HttpCachePolicy.cs (9)
881
_headerCacheControl = new HttpResponseHeader(
HttpWorkerRequest
.HeaderCacheControl, sb.ToString());
889
s_headerPragmaNoCache = new HttpResponseHeader(
HttpWorkerRequest
.HeaderPragma, "no-cache");
896
s_headerExpiresMinus1 = new HttpResponseHeader(
HttpWorkerRequest
.HeaderExpires, "-1");
908
_headerExpires = new HttpResponseHeader(
HttpWorkerRequest
.HeaderExpires, expirationDate);
916
_headerLastModified = new HttpResponseHeader(
HttpWorkerRequest
.HeaderLastModified, lastModifiedDate);
925
_headerEtag = new HttpResponseHeader(
HttpWorkerRequest
.HeaderEtag, _etag);
963
_headerVaryBy = new HttpResponseHeader(
HttpWorkerRequest
.HeaderVary, varyByHeaders);
998
headerExpires = new HttpResponseHeader(
HttpWorkerRequest
.HeaderExpires, expirationDate);
1032
headerCacheControl = new HttpResponseHeader(
HttpWorkerRequest
.HeaderCacheControl, sb.ToString());
HttpContext.cs (5)
85
private
HttpWorkerRequest
_wr;
456
public HttpContext(
HttpWorkerRequest
wr) {
463
internal HttpContext(
HttpWorkerRequest
wr, bool initResponseWriter) {
676
if (service == typeof(
HttpWorkerRequest
)) {
1398
internal
HttpWorkerRequest
WorkerRequest {
HttpCookie.cs (1)
493
return new HttpResponseHeader(
HttpWorkerRequest
.HeaderSetCookie, s.ToString());
HttpHeaderCollection.cs (2)
32
internal HttpHeaderCollection(
HttpWorkerRequest
wr, HttpRequest request, int capacity) : base(capacity) {
44
internal HttpHeaderCollection(
HttpWorkerRequest
wr, HttpResponse response, int capacity) : base(capacity) {
HttpRequest.cs (21)
67
private
HttpWorkerRequest
_wr;
164
internal HttpRequest(
HttpWorkerRequest
wr, HttpContext context) {
428
for (int i = 0; i <
HttpWorkerRequest
.RequestHeaderMaximum; i++) {
432
String name =
HttpWorkerRequest
.GetKnownRequestHeaderName(i);
463
for (int i = 0; i <
HttpWorkerRequest
.RequestHeaderMaximum; i++) {
469
name =
HttpWorkerRequest
.GetServerVariableNameFromKnownRequestHeaderIndex(i);
471
name =
HttpWorkerRequest
.GetKnownRequestHeaderName(i);
585
String clString = _wr.GetKnownRequestHeader(
HttpWorkerRequest
.HeaderContentLength);
629
for (int i = 0; i <
HttpWorkerRequest
.RequestHeaderMaximum; i++) {
632
AddServerVariableToCollection(
HttpWorkerRequest
.GetServerVariableNameFromKnownRequestHeaderIndex(i), h);
709
String s = _wr.GetKnownRequestHeader(
HttpWorkerRequest
.HeaderCookie);
1261
_contentType = _wr.GetKnownRequestHeader(
HttpWorkerRequest
.HeaderContentType);
1284
String s = _wr.GetKnownRequestHeader(
HttpWorkerRequest
.HeaderContentLength);
1365
_acceptTypes = ParseMultivalueHeader(_wr.GetKnownRequestHeader(
HttpWorkerRequest
.HeaderAccept));
1741
return _wr.GetKnownRequestHeader(
HttpWorkerRequest
.HeaderUserAgent);
1759
_userLanguages = ParseMultivalueHeader(_wr.GetKnownRequestHeader(
HttpWorkerRequest
.HeaderAcceptLanguage));
1887
string serverAndPort = _wr.GetKnownRequestHeader(
HttpWorkerRequest
.HeaderHost);
1939
string serverAndPort = _wr.GetKnownRequestHeader(
HttpWorkerRequest
.HeaderHost);
1968
String r = _wr.GetKnownRequestHeader(
HttpWorkerRequest
.HeaderReferer);
1994
return _wr.GetKnownRequestHeader(
HttpWorkerRequest
.HeaderIfModifiedSince);
2003
return _wr.GetKnownRequestHeader(
HttpWorkerRequest
.HeaderIfNoneMatch);
HttpResponse.cs (30)
43
private
HttpWorkerRequest
_wr; // some response have HttpWorkerRequest
153
internal HttpResponse(
HttpWorkerRequest
wr, HttpContext context) {
236
headerId =
HttpWorkerRequest
.GetKnownResponseHeaderIndex(key);
238
(headerId ==
HttpWorkerRequest
.HeaderServer ||
239
headerId ==
HttpWorkerRequest
.HeaderSetCookie ||
240
headerId ==
HttpWorkerRequest
.HeaderCacheControl ||
241
headerId ==
HttpWorkerRequest
.HeaderExpires ||
242
headerId ==
HttpWorkerRequest
.HeaderLastModified ||
243
headerId ==
HttpWorkerRequest
.HeaderEtag ||
244
headerId ==
HttpWorkerRequest
.HeaderVary)) {
428
headers.Add(new HttpResponseHeader(
HttpWorkerRequest
.HeaderLocation, _redirectLocation));
456
headers.Add(new HttpResponseHeader(
HttpWorkerRequest
.HeaderCacheControl, "private"));
466
headers.Add(new HttpResponseHeader(
HttpWorkerRequest
.HeaderContentType, contentType));
631
AppendHeader(new HttpResponseHeader(
HttpWorkerRequest
.HeaderTransferEncoding, "chunked"));
1447
case
HttpWorkerRequest
.HeaderCacheControl:
1450
case
HttpWorkerRequest
.HeaderContentType:
1453
case
HttpWorkerRequest
.HeaderLocation:
1457
case
HttpWorkerRequest
.HeaderSetCookie:
1551
_statusDescription =
HttpWorkerRequest
.GetStatusDescription(_statusCode);
2012
int knownHeaderIndex =
HttpWorkerRequest
.GetKnownResponseHeaderIndex(name);
2015
case
HttpWorkerRequest
.HeaderContentType:
2019
case
HttpWorkerRequest
.HeaderContentLength:
2023
case
HttpWorkerRequest
.HeaderLocation:
2027
case
HttpWorkerRequest
.HeaderTransferEncoding:
2031
case
HttpWorkerRequest
.HeaderCacheControl:
2033
goto case
HttpWorkerRequest
.HeaderExpires;
2034
case
HttpWorkerRequest
.HeaderExpires:
2035
case
HttpWorkerRequest
.HeaderLastModified:
2036
case
HttpWorkerRequest
.HeaderEtag:
2037
case
HttpWorkerRequest
.HeaderVary:
HttpResponseHeader.cs (4)
52
_knownHeaderIndex =
HttpWorkerRequest
.GetKnownResponseHeaderIndex(_unknownHeader);
56
_knownHeaderIndex =
HttpWorkerRequest
.GetKnownResponseHeaderIndex(_unknownHeader);
66
return
HttpWorkerRequest
.GetKnownResponseHeaderName(_knownHeaderIndex);
74
internal void Send(
HttpWorkerRequest
wr) {
HttpRuntime.cs (14)
230
private
HttpWorkerRequest
.EndOfSendNotification _asyncEndOfSendCallback;
313
_asyncEndOfSendCallback = new
HttpWorkerRequest
.EndOfSendNotification(this.EndOfSendCallback);
1618
private void ProcessRequestInternal(
HttpWorkerRequest
wr) {
1629
wr.SendKnownResponseHeader(
HttpWorkerRequest
.HeaderContentType, "text/html; charset=utf-8");
1652
wr.SendKnownResponseHeader(
HttpWorkerRequest
.HeaderContentType, "text/html; charset=utf-8");
1711
private void RejectRequestInternal(
HttpWorkerRequest
wr, bool silent) {
1747
private void FinishRequest(
HttpWorkerRequest
wr, HttpContext context, Exception e) {
2114
private void EndOfSendCallback(
HttpWorkerRequest
wr, Object arg) {
2368
public static void ProcessRequest(
HttpWorkerRequest
wr) {
2380
internal static void ProcessRequestNoDemand(
HttpWorkerRequest
wr) {
2396
private static void CalculateWaitTimeAndUpdatePerfCounter(
HttpWorkerRequest
wr) {
2409
internal static void ProcessRequestNow(
HttpWorkerRequest
wr) {
2413
internal static void RejectRequestNow(
HttpWorkerRequest
wr, bool silent) {
3350
HttpWorkerRequest
wr = context.WorkerRequest;
HttpServerVarsCollection.cs (3)
32
internal HttpServerVarsCollection(
HttpWorkerRequest
wr, HttpRequest request) : base(59) {
245
int knownIndex =
HttpWorkerRequest
.GetKnownRequestHeaderIndex(headerName);
247
headerName =
HttpWorkerRequest
.GetKnownRequestHeaderName(knownIndex);
HttpWriter.cs (7)
52
void Send(
HttpWorkerRequest
wr);
161
void IHttpResponseElement.Send(
HttpWorkerRequest
wr) {
326
void IHttpResponseElement.Send(
HttpWorkerRequest
wr) {
392
void IHttpResponseElement.Send(
HttpWorkerRequest
wr) {
507
void IHttpResponseElement.Send(
HttpWorkerRequest
wr) {
639
void IHttpResponseElement.Send(
HttpWorkerRequest
wr) {
1557
internal void Send(
HttpWorkerRequest
wr) {
ImplicitAsyncPreloadModule.cs (1)
44
HttpWorkerRequest
wr = context.WorkerRequest;
OutputCacheModule.cs (1)
636
string acceptEncoding = context.WorkerRequest.GetKnownRequestHeader(
HttpWorkerRequest
.HeaderAcceptEncoding);
RequestQueue.cs (11)
47
private static bool IsLocal(
HttpWorkerRequest
wr) {
65
private void QueueRequest(
HttpWorkerRequest
wr, bool isLocal) {
82
private
HttpWorkerRequest
DequeueRequest(bool localOnly) {
83
HttpWorkerRequest
wr = null;
88
wr = (
HttpWorkerRequest
)_localQueue.Dequeue();
92
wr = (
HttpWorkerRequest
)_externQueue.Dequeue();
124
private bool CheckClientConnected(
HttpWorkerRequest
wr) {
150
internal
HttpWorkerRequest
GetRequestToExecute(
HttpWorkerRequest
wr) {
244
HttpWorkerRequest
wr = DequeueRequest(workerThreads < _minExternFreeThreads);
282
HttpWorkerRequest
wr = DequeueRequest(false);
WebSockets\AspNetWebSocketContextImpl.cs (2)
27
private readonly
HttpWorkerRequest
_workerRequest;
32
public AspNetWebSocketContextImpl(HttpContextBase httpContext = null,
HttpWorkerRequest
workerRequest = null, AspNetWebSocket webSocket = null) {
WebSockets\WebSocketUtil.cs (2)
19
public static bool IsSameOriginRequest(
HttpWorkerRequest
workerRequest) {
20
string hostHeader = workerRequest.GetKnownRequestHeader(
HttpWorkerRequest
.HeaderHost);
WorkerRequest.cs (1)
1062
public delegate void EndOfSendNotification(
HttpWorkerRequest
wr, Object extraData);
System.Web.Extensions (1)
Script\Services\RestHandler.cs (1)
222
context.Response.StatusDescription =
HttpWorkerRequest
.GetStatusDescription(statusCode);