81 references to HttpResponseHeader
System (34)
net\System\Net\_AuthenticationState.cs (3)
70internal HttpResponseHeader AuthenticateHeader { 72return IsProxyAuth ? HttpResponseHeader.ProxyAuthenticate : HttpResponseHeader.WwwAuthenticate;
net\System\Net\HttpListener.cs (2)
2343(&httpResponse.Headers.KnownHeaders)[(int)HttpResponseHeader.ContentLength].pRawValue = (sbyte*)pContentLength; 2344(&httpResponse.Headers.KnownHeaders)[(int)HttpResponseHeader.ContentLength].RawValueLength = (ushort)byteContentLength.Length;
net\System\Net\HttpListenerResponse.cs (20)
81return Headers[HttpResponseHeader.ContentType]; 87Headers.Remove(HttpResponseHeader.ContentType); 91Headers.Set(HttpResponseHeader.ContentType, value); 106return Headers[HttpResponseHeader.Location]; 113Headers.Remove(HttpResponseHeader.Location); 117Headers.Set(HttpResponseHeader.Location, value); 275Headers.SetInternal(HttpResponseHeader.Location, url); 594GlobalLog.Print("HttpListenerResponse#" + ValidationHelper.HashString(this) + "::ComputeCookies() entering Set-Cookie: " + ValidationHelper.ToString(Headers[HttpResponseHeader.SetCookie]) +" Set-Cookie2: " + ValidationHelper.ToString(Headers[HttpKnownHeaderNames.SetCookie2])); 615Headers.Set(HttpResponseHeader.SetCookie, setCookie); 630GlobalLog.Print("HttpListenerResponse#" + ValidationHelper.HashString(this) + "::ComputeCookies() exiting Set-Cookie: " + ValidationHelper.ToString(Headers[HttpResponseHeader.SetCookie]) +" Set-Cookie2: " + ValidationHelper.ToString(Headers[HttpKnownHeaderNames.SetCookie2])); 667Headers.SetInternal(HttpResponseHeader.ContentLength, m_ContentLength.ToString("D", NumberFormatInfo.InvariantInfo)); 673Headers.SetInternal(HttpResponseHeader.TransferEncoding, HttpWebRequest.ChunkedHeader); 682Headers.Add(HttpResponseHeader.Connection, "close"); 691Headers.SetInternal(HttpResponseHeader.KeepAlive, "true"); 702Headers.SetInternal(HttpResponseHeader.WwwAuthenticate, HttpListenerContext.MutualAuthentication); 772if (lookup == (int)HttpResponseHeader.SetCookie || 773isWebSocketHandshake && lookup == (int)HttpResponseHeader.Connection) 791if (lookup == (int)HttpResponseHeader.SetCookie || 792isWebSocketHandshake && lookup == (int)HttpResponseHeader.Connection) 840GlobalLog.Print("HttpListenerResponse#" + ValidationHelper.HashString(this) + "::SerializeHeaders(Known) HttpResponseHeader[" + lookup + "]:" + ((HttpResponseHeader)lookup) + " headerValue:" + ValidationHelper.ToString(headerValue));
net\System\Net\HttpWebRequest.cs (1)
681internal string AuthHeader(HttpResponseHeader header) {
net\System\Net\UnsafeNativeMethods.cs (1)
2733const int HttpHeaderResponseMaximum = (int)HttpResponseHeader.WwwAuthenticate + 1;
net\System\Net\WebHeaderCollection.cs (7)
282public string this[HttpResponseHeader header] { 293case HttpResponseHeader.ProxyAuthenticate: 296case HttpResponseHeader.WwwAuthenticate: 323public void Add(HttpResponseHeader header, string value) { 342public void Set(HttpResponseHeader header, string value) { 355internal void SetInternal(HttpResponseHeader header, string value) { 375public void Remove(HttpResponseHeader header) {
System.Data.Services (16)
System\Data\Services\BatchServiceHost.cs (10)
194get { return this.responseHeaders[HttpResponseHeader.CacheControl]; } 195set { this.responseHeaders[HttpResponseHeader.CacheControl] = value; } 201get { return this.responseHeaders[HttpResponseHeader.ContentType]; } 202set { this.responseHeaders[HttpResponseHeader.ContentType] = value; } 208get { return this.responseHeaders[HttpResponseHeader.ETag]; } 209set { this.responseHeaders[HttpResponseHeader.ETag] = value; } 215get { return this.responseHeaders[HttpResponseHeader.Location]; } 216set { this.responseHeaders[HttpResponseHeader.Location] = value; } 334this.responseHeaders[HttpResponseHeader.ContentType] = args.ResponseContentType; 335this.responseHeaders[HttpResponseHeader.Allow] = args.ResponseAllowHeader;
System\Data\Services\DataService.cs (1)
554response.Headers[System.Net.HttpResponseHeader.ContentType] = contentType;
System\Data\Services\HttpContextServiceHost.cs (5)
223get { return this.operationContext.OutgoingResponse.Headers[HttpResponseHeader.CacheControl]; } 224set { this.operationContext.OutgoingResponse.Headers[HttpResponseHeader.CacheControl] = value; } 244get { return this.operationContext.OutgoingResponse.Headers[HttpResponseHeader.Location]; } 245set { this.operationContext.OutgoingResponse.Headers[HttpResponseHeader.Location] = value; } 444this.operationContext.OutgoingResponse.Headers[HttpResponseHeader.Allow] = args.ResponseAllowHeader;
System.ServiceModel (12)
System\ServiceModel\Channels\ClientContextProtocol.cs (1)
297string setCookieHeader = httpResponse.Headers[HttpResponseHeader.SetCookie];
System\ServiceModel\Channels\HttpChannelHelpers.cs (6)
1256if (message.Version == MessageVersion.None && httpResponseMessagePropertyFound && !string.IsNullOrEmpty(responseProperty.Headers[HttpResponseHeader.ContentType])) 1258contentType = responseProperty.Headers[HttpResponseHeader.ContentType]; 1259responseProperty.Headers.Remove(HttpResponseHeader.ContentType); 1393if (!string.IsNullOrEmpty(responseProperty.Headers[HttpResponseHeader.ContentType])) 1395contentType = responseProperty.Headers[HttpResponseHeader.ContentType]; 3783response.Headers[HttpResponseHeader.WwwAuthenticate]);
System\ServiceModel\Channels\HttpHeaderInfo.cs (2)
35private static readonly Type httpResponseHeaderType = typeof(HttpResponseHeader); 167if (string.Equals(headerEnumString, HttpResponseHeader.ETag.ToString(), StringComparison.Ordinal))
System\ServiceModel\Channels\ServiceContextProtocol.cs (1)
135property.Headers.Add(HttpResponseHeader.SetCookie, setCookieHeader);
System\ServiceModel\Channels\SharedHttpTransportManager.cs (1)
431listenerContext.Response.Headers.Add(HttpResponseHeader.Allow, "POST");
System\ServiceModel\Description\ServiceMetadataExtension.cs (1)
1292responseProperty.Headers.Add(HttpResponseHeader.ContentType, contentType);
System.ServiceModel.Web (19)
System\ServiceModel\Description\WebScriptEnablingBehavior.cs (1)
422responseProperty.Headers.Add(HttpResponseHeader.ContentType, outgoingContentType);
System\ServiceModel\Dispatcher\ContentTypeSettingDispatchMessageFormatter.cs (2)
77if (string.IsNullOrEmpty(httpProperty.Headers[HttpResponseHeader.ContentType])) 79httpProperty.Headers[HttpResponseHeader.ContentType] = contentType;
System\ServiceModel\Dispatcher\HttpUnhandledOperationInvoker.cs (1)
82WebOperationContext.Current.OutgoingResponse.Headers[HttpResponseHeader.Allow] = allowedMethodsData.AllowHeader;
System\ServiceModel\Dispatcher\JavascriptCallbackMessageInspector.cs (1)
67property.Headers[HttpResponseHeader.ContentType] = applicationJavaScriptMediaType;
System\ServiceModel\Dispatcher\WebErrorHandler.cs (1)
157responseProperty.Headers[HttpResponseHeader.ContentType] = Atom10Constants.HtmlMediaType;
System\ServiceModel\Web\IncomingWebResponseContext.cs (4)
25{ get { return long.Parse(EnsureMessageProperty().Headers[HttpResponseHeader.ContentLength], CultureInfo.InvariantCulture); } } 28{ get { return EnsureMessageProperty().Headers[HttpResponseHeader.ContentType]; } } 31{ get { return EnsureMessageProperty().Headers[HttpResponseHeader.ETag]; } } 37{ get { return EnsureMessageProperty().Headers[HttpResponseHeader.Location]; } }
System\ServiceModel\Web\OutgoingWebResponseContext.cs (9)
34get { return long.Parse(this.MessageProperty.Headers[HttpResponseHeader.ContentLength], CultureInfo.InvariantCulture); } 35set { this.MessageProperty.Headers[HttpResponseHeader.ContentLength] = value.ToString(CultureInfo.InvariantCulture); } 40get { return this.MessageProperty.Headers[HttpResponseHeader.ContentType]; } 41set { this.MessageProperty.Headers[HttpResponseHeader.ContentType] = value; } 46get { return this.MessageProperty.Headers[HttpResponseHeader.ETag]; } 47set { this.MessageProperty.Headers[HttpResponseHeader.ETag] = value; } 72this.MessageProperty.Headers[HttpResponseHeader.LastModified] = 81get { return this.MessageProperty.Headers[HttpResponseHeader.Location]; } 82set { this.MessageProperty.Headers[HttpResponseHeader.Location] = value; }