3 writes to _wr
System.Web (3)
125 references to _wr
System.Web (125)
HttpRequest.cs (125)
275if (_wr != null) {
276return _wr.IsLocal();
369if (_wr == null)
372if (!_wr.HasEntityBody())
423if (_wr == null)
429String h = _wr.GetKnownRequestHeader(i);
439String[][] hh = _wr.GetUnknownRequestHeaders();
456if (_wr == null)
464String h = _wr.GetKnownRequestHeader(i);
484String[][] hh = _wr.GetUnknownRequestHeaders();
551_serverVariables.AddStatic(name, _wr.GetServerVariable(name));
555if (_wr == null)
565AddServerVariableToCollection("APPL_PHYSICAL_PATH", _wr.GetAppPathTranslated());
585String clString = _wr.GetKnownRequestHeader(HttpWorkerRequest.HeaderContentLength);
601AddServerVariableToCollection("LOCAL_ADDR", _wr.GetLocalAddress());
617AddServerVariableToCollection("SERVER_NAME", _wr.GetServerName());
618AddServerVariableToCollection("SERVER_PORT", _wr.GetLocalPortAsString());
620AddServerVariableToCollection("SERVER_PORT_SECURE", _wr.IsSecure() ? "1" : "0");
622AddServerVariableToCollection("SERVER_PROTOCOL", _wr.GetHttpVersion());
630String h = _wr.GetKnownRequestHeader(i);
635String[][] hh = _wr.GetUnknownRequestHeaders();
706if (_wr == null)
709String s = _wr.GetKnownRequestHeader(HttpWorkerRequest.HeaderCookie);
806if (_wr == null)
922if (!_wr.HasEntityBody())
949if (_wr == null)
975if ( !(_wr is IIS7WorkerRequest) ) {
990byte[] preloadedContent = _wr.GetPreloadedEntityBody();
993_wr.UpdateRequestCounters(preloadedContent.Length);
999if (!_wr.IsEntireEntityBodyIsPreloaded()) {
1011int bytesRead = _wr.ReadEntityBody(buf, bytesToRead);
1015_wr.UpdateRequestCounters(bytesRead);
1173Debug.Assert(_wr != null);
1174_httpMethod = _wr.GetHttpVerbName();
1260if (_wr != null)
1261_contentType = _wr.GetKnownRequestHeader(HttpWorkerRequest.HeaderContentType);
1283if (_wr != null) {
1284String s = _wr.GetKnownRequestHeader(HttpWorkerRequest.HeaderContentLength);
1295if (_wr.IsEntireEntityBodyIsPreloaded()) {
1296byte[] preloadedContent = _wr.GetPreloadedEntityBody();
1364if (_wr != null)
1365_acceptTypes = ParseMultivalueHeader(_wr.GetKnownRequestHeader(HttpWorkerRequest.HeaderAccept));
1383if (_wr != null)
1384return _wr.IsSecure();
1415Debug.Assert(_wr != null);
1418_path = VirtualPath.Create(_wr.GetUriPath(),
1519if (_wr != null) {
1520_filePath = _wr.GetFilePathObject();
1622if (_wr != null) {
1623_pathInfo = VirtualPath.CreateAbsoluteAllowNull(_wr.GetPathInfo());
1675Debug.Assert(_wr != null);
1676_pathTranslated = _wr.GetFilePathTranslated();
1681if (_pathTranslated == null && _wr != null) {
1723if (_wr != null)
1724return _wr.GetAppPathTranslated();
1740if (_wr != null)
1741return _wr.GetKnownRequestHeader(HttpWorkerRequest.HeaderUserAgent);
1758if (_wr != null)
1759_userLanguages = ParseMultivalueHeader(_wr.GetKnownRequestHeader(HttpWorkerRequest.HeaderAcceptLanguage));
1802String s = (_wr != null) ? _wr.GetRemoteName() : null;
1819if (_wr != null)
1820return _wr.GetRemoteAddress();
1854if (_wr != null) {
1855url = _wr.GetRawUrl();
1887string serverAndPort = _wr.GetKnownRequestHeader(HttpWorkerRequest.HeaderHost);
1893string u = _wr.GetProtocol() + "://" + serverAndPort + Path + q;
1901String serverName = _wr.GetServerName();
1904if (_wr.GetLocalPortAsString() == "80") {
1905return _wr.GetProtocol() + "://" + serverName + Path + q;
1908return _wr.GetProtocol() + "://" + serverName + ":" + _wr.GetLocalPortAsString() + Path + q;
1917if (_url == null && _wr != null) {
1939string serverAndPort = _wr.GetKnownRequestHeader(HttpWorkerRequest.HeaderHost);
1945url = UriUtil.BuildUri(_wr.GetProtocol(), Uri.UnescapeDataString(serverAndPort), null /* port */, pathAccessor(), q);
1953String serverName = _wr.GetServerName();
1957url = UriUtil.BuildUri(_wr.GetProtocol(), Uri.UnescapeDataString(serverName), _wr.GetLocalPortAsString(), pathAccessor(), q);
1967if (_wr != null) {
1968String r = _wr.GetKnownRequestHeader(HttpWorkerRequest.HeaderReferer);
1992if (_wr == null)
1994return _wr.GetKnownRequestHeader(HttpWorkerRequest.HeaderIfModifiedSince);
2001if (_wr == null)
2003return _wr.GetKnownRequestHeader(HttpWorkerRequest.HeaderIfNoneMatch);
2070if (_wr != null) {
2081_queryStringText = _wr.GetQueryString();
2118if (_wr != null)
2119_queryStringBytes = _wr.GetQueryStringRawBytes();
2147if (_wr != null)
2192if (_wr != null)
2207if (_wr != null && !_wr.HasEntityBody()) {
2246_headers = new HttpHeaderCollection(_wr, this, 8);
2248if (_wr != null)
2251if (!(_wr is IIS7WorkerRequest)) {
2293_serverVariables = new HttpServerVarsCollection(_wr, this);
2295if ( !(_wr is IIS7WorkerRequest) ) {
2303IIS7WorkerRequest wr = _wr as IIS7WorkerRequest;
2321IIS7WorkerRequest wr = _wr as IIS7WorkerRequest;
2340IIS7WorkerRequest wr = _wr as IIS7WorkerRequest;
2386if (_wr != null)
2419if (_wr != null)
2436if (_wr != null)
2535if (_wr != null) {
2536if (_wr is IIS7WorkerRequest && _context.NotificationContext != null &&
2542_logonUserIdentity = _wr.GetLogonUserIdentity();
2587if (_wr == null) {
2592if (_wr is StateHttpWorkerRequest) {
2597if (_wr is IIS7WorkerRequest &&
2922if (_wr != null) {
2924w.Write(" " + _wr.GetHttpVersion() + "\r\n");
2965if (_wr != null) {
2995if (_wr == null)
3061IIS7WorkerRequest iis7WorkerRequest = _wr as IIS7WorkerRequest;
3070_pathTranslated = (_wr != null) ? newFilePath.MapPathInternal() : null;
3106IIS7WorkerRequest iis7WorkerRequest = _wr as IIS7WorkerRequest;
3118return _wr.GetServerVariable(variable);
3155if (_wr is IIS7WorkerRequest)
3156return ((IIS7WorkerRequest)_wr).HttpChannelBindingToken;
3157else if (_wr is ISAPIWorkerRequestInProc)
3158return ((ISAPIWorkerRequestInProc)_wr).HttpChannelBindingToken;
3177IIS7WorkerRequest iis7wr = _wr as IIS7WorkerRequest;
3196IIS7WorkerRequest wr = _wr as IIS7WorkerRequest;
3218IIS7WorkerRequest wr = _wr as IIS7WorkerRequest;
3299IIS7WorkerRequest wr = _wr as IIS7WorkerRequest;