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