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