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