43 references to Headers
System.Data.Services (1)
System\Data\Services\DataService.cs (1)
554
response.
Headers
[System.Net.HttpResponseHeader.ContentType] = contentType;
System.ServiceModel (14)
System\ServiceModel\Channels\ClientContextProtocol.cs (1)
297
string setCookieHeader = httpResponse.
Headers
[HttpResponseHeader.SetCookie];
System\ServiceModel\Channels\HttpChannelHelpers.cs (8)
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);
1326
foreach (string key in responseProperty.
Headers
.AllKeys)
1328
httpResponseMessage.AddHeader(key, responseProperty.
Headers
[key]);
1393
if (!string.IsNullOrEmpty(responseProperty.
Headers
[HttpResponseHeader.ContentType]))
1395
contentType = responseProperty.
Headers
[HttpResponseHeader.ContentType];
2983
WebHeaderCollection responseHeaders = responseProperty.
Headers
;
System\ServiceModel\Channels\HttpResponseMessageProperty.cs (1)
379
copiedProperty.
Headers
.Add(this.Headers);
System\ServiceModel\Channels\ServiceContextProtocol.cs (1)
135
property.
Headers
.Add(HttpResponseHeader.SetCookie, setCookieHeader);
System\ServiceModel\Description\ServiceMetadataExtension.cs (2)
1292
responseProperty.
Headers
.Add(HttpResponseHeader.ContentType, contentType);
1300
httpResponseProperty.
Headers
["Location"] = redirectedDestination;
System\ServiceModel\Diagnostics\MessageLogTraceRecord.cs (1)
314
WebHeaderCollection responseHeaders = responseProperty.
Headers
;
System.ServiceModel.Activation (1)
System\ServiceModel\Activation\HostedHttpContext.cs (1)
575
WebHeaderCollection responseHeaders = responseProperty.
Headers
;
System.ServiceModel.Channels (1)
System\ServiceModel\Channels\MessageExtensionMethods.cs (1)
180
WebHeaderCollection headers = responseMessageProperty.
Headers
;
System.ServiceModel.Web (26)
System\ServiceModel\Description\WebScriptClientGenerator.cs (3)
82
responseMessageProperty.
Headers
.Add(JsonGlobals.LastModifiedString, ServiceLastModifiedRfc1123String);
83
responseMessageProperty.
Headers
.Add(JsonGlobals.ExpiresString, ServiceLastModifiedRfc1123String);
90
responseMessageProperty.
Headers
.Add(JsonGlobals.CacheControlString, JsonGlobals.publicString);
System\ServiceModel\Description\WebScriptEnablingBehavior.cs (3)
332
if (((HttpResponseMessageProperty)responseProperty).
Headers
[JsonGlobals.jsonerrorString] == JsonGlobals.trueString)
422
responseProperty.
Headers
.Add(HttpResponseHeader.ContentType, outgoingContentType);
423
responseProperty.
Headers
.Add(JsonGlobals.jsonerrorString, JsonGlobals.trueString);
System\ServiceModel\Dispatcher\ContentTypeSettingDispatchMessageFormatter.cs (2)
77
if (string.IsNullOrEmpty(httpProperty.
Headers
[HttpResponseHeader.ContentType]))
79
httpProperty.
Headers
[HttpResponseHeader.ContentType] = contentType;
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 (5)
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]; } }
34
{ get { return EnsureMessageProperty().
Headers
; } }
37
{ get { return EnsureMessageProperty().
Headers
[HttpResponseHeader.Location]; } }
System\ServiceModel\Web\OutgoingWebResponseContext.cs (11)
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; }
52
get { return this.MessageProperty.
Headers
; }
59
string dateTime = this.MessageProperty.
Headers
[HttpRequestHeader.LastModified];
72
this.MessageProperty.
Headers
[HttpResponseHeader.LastModified] =
81
get { return this.MessageProperty.
Headers
[HttpResponseHeader.Location]; }
82
set { this.MessageProperty.
Headers
[HttpResponseHeader.Location] = value; }