94 references to HttpChannelUtilities
System.ServiceModel (94)
System\ServiceModel\BasicHttpBinding.cs (1)
62
[Obsolete(
HttpChannelUtilities
.ObsoleteDescriptionStrings.PropertyObsoleteUseAllowCookies, false)]
System\ServiceModel\Channels\ClientWebSocketTransportDuplexSessionChannel.cs (3)
71
throw FxTrace.Exception.AsError(
HttpChannelUtilities
.CreateRequestWebException(ex, this.httpWebRequest, HttpAbortReason.None));
109
throw FxTrace.Exception.AsError(
HttpChannelUtilities
.CreateRequestWebException(ex, this.httpWebRequest, HttpAbortReason.None));
159
throw FxTrace.Exception.AsError(
HttpChannelUtilities
.CreateRequestWebException(ex, request, HttpAbortReason.None));
System\ServiceModel\Channels\HttpChannelFactory.cs (16)
889
NetworkCredential credential =
HttpChannelUtilities
.GetCredential(this.authenticationScheme,
1228
HttpChannelUtilities
.SetRequestTimeout(this.webRequest, timeoutHelper.RemainingTime());
1271
HttpChannelUtilities
.AbortRequest(this.webRequest);
1312
HttpChannelUtilities
.CreateNullReferenceResponseException(nullReferenceException));
1332
response =
HttpChannelUtilities
.ProcessGetResponseWebException(webException, this.webRequest,
1336
HttpInput httpInput =
HttpChannelUtilities
.ValidateRequestReplyResponse(this.webRequest, response,
1349
HttpChannelUtilities
.AddReplySecurityProperty(this.factory, this.webRequest, response,
1617
HttpChannelUtilities
.CreateNullReferenceResponseException(nullReferenceException));
1674
HttpChannelUtilities
.CreateNullReferenceResponseException(nullReferenceException));
1695
response =
HttpChannelUtilities
.ProcessGetResponseWebException(webException, request,
1707
HttpChannelUtilities
.AbortRequest(this.request);
1718
HttpChannelUtilities
.SetRequestTimeout(this.request, timeout);
1761
this.httpInput =
HttpChannelUtilities
.ValidateRequestReplyResponse(this.request, response,
1794
HttpChannelUtilities
.AddReplySecurityProperty(this.factory, this.request, this.response,
2021
HttpChannelUtilities
.ValidateDigestCredential(ref credential, impersonationLevel);
2150
NetworkCredential credential =
HttpChannelUtilities
.GetCredential(this.authenticationScheme,
System\ServiceModel\Channels\HttpChannelHelpers.cs (49)
396
ThrowHttpProtocolException(SR.GetString(SR.HttpContentTypeHeaderRequired), HttpStatusCode.UnsupportedMediaType,
HttpChannelUtilities
.StatusDescriptionStrings.HttpContentTypeMissing);
409
string statusDescription = string.Format(CultureInfo.InvariantCulture,
HttpChannelUtilities
.StatusDescriptionStrings.HttpContentTypeMismatch, ContentType, messageEncoder.ContentType);
464
HttpChannelUtilities
.EnsureHttpRequestMessageContentNotNull(message);
603
exception.Data.Add(
HttpChannelUtilities
.HttpStatusCodeExceptionKey, statusCode);
606
exception.Data.Add(
HttpChannelUtilities
.HttpStatusDescriptionExceptionKey, statusDescription);
990
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
HttpChannelUtilities
.CreateResponseWebException(webException, this.webResponse));
1010
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
HttpChannelUtilities
.CreateResponseWebException(webException, this.webResponse));
1030
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
HttpChannelUtilities
.CreateResponseWebException(webException, this.webResponse));
1051
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
HttpChannelUtilities
.CreateResponseWebException(webException, this.webResponse));
1059
return DiagnosticUtility.ExceptionUtility.ThrowHelperError(
HttpChannelUtilities
.CreateResponseIOException(ioException, timeSpan));
1238
HttpChannelUtilities
.EnsureHttpResponseMessageContentNotNull(httpResponseMessage);
1279
httpResponseMessage.Headers.Add(
HttpChannelUtilities
.MIMEVersionHeader, DefaultMimeVersion);
1292
if (
HttpChannelUtilities
.GetHttpResponseTypeAndEncodingForCompression(ref compressionContentType, out contentEncoding))
1433
return
HttpChannelUtilities
.IsEmpty(httpResponseMessage);
1587
HttpChannelUtilities
.HandleContinueWithTask(t);
2396
httpWebRequest.Headers[
HttpChannelUtilities
.MIMEVersionHeader] = version;
2411
this.httpWebRequest.Headers.Add(
HttpChannelUtilities
.ContentEncodingHeader, contentEncoding);
2493
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
HttpChannelUtilities
.CreateRequestWebException(webException, httpWebRequest, abortReason));
2741
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
HttpChannelUtilities
.CreateRequestWebException(webException, httpWebRequest, httpOutput.abortReason));
2761
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
HttpChannelUtilities
.CreateRequestWebException(webException, httpWebRequest, httpOutput.abortReason));
2818
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
HttpChannelUtilities
.CreateRequestCanceledException(objectDisposedException, httpWebRequest, httpOutput.abortReason));
2822
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
HttpChannelUtilities
.CreateRequestIOException(ioException, httpWebRequest));
2826
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
HttpChannelUtilities
.CreateRequestWebException(webException, httpWebRequest, httpOutput.abortReason));
2851
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
HttpChannelUtilities
.CreateRequestCanceledException(objectDisposedException, httpWebRequest, httpOutput.abortReason));
2855
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
HttpChannelUtilities
.CreateRequestIOException(ioException, httpWebRequest));
2859
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
HttpChannelUtilities
.CreateRequestWebException(webException, httpWebRequest, httpOutput.abortReason));
2871
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
HttpChannelUtilities
.CreateRequestCanceledException(objectDisposedException, httpWebRequest, httpOutput.abortReason));
2875
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
HttpChannelUtilities
.CreateRequestIOException(ioException, httpWebRequest));
2879
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
HttpChannelUtilities
.CreateRequestWebException(webException, httpWebRequest, httpOutput.abortReason));
2891
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
HttpChannelUtilities
.CreateRequestCanceledException(objectDisposedException, httpWebRequest, httpOutput.abortReason));
2895
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
HttpChannelUtilities
.CreateRequestIOException(ioException, httpWebRequest));
2899
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
HttpChannelUtilities
.CreateRequestWebException(webException, httpWebRequest, httpOutput.abortReason));
2941
listenerResponse.Headers[
HttpChannelUtilities
.MIMEVersionHeader] = version;
2952
if (
HttpChannelUtilities
.GetHttpResponseTypeAndEncodingForCompression(ref contentType, out contentEncoding))
3036
HttpChannelUtilities
.CopyHeaders(message, AddHeader);
3058
this.listenerResponse.AddHeader(
HttpChannelUtilities
.ContentEncodingHeader, contentEncoding);
3097
HttpChannelUtilities
.CreateCommunicationException(listenerException));
3110
HttpChannelUtilities
.CreateCommunicationException(listenerException));
3129
HttpChannelUtilities
.CreateCommunicationException(listenerException));
3148
HttpChannelUtilities
.CreateCommunicationException(listenerException));
3303
HttpChannelUtilities
.CopyHeaders(request.Headers, addHeader);
3306
HttpChannelUtilities
.CopyHeaders(request.Content.Headers, addHeader);
3312
HttpChannelUtilities
.CopyHeaders(response.Headers, addHeader);
3315
HttpChannelUtilities
.CopyHeaders(response.Content.Headers, addHeader);
3473
HttpChannelUtilities
.ValidateDigestCredential(ref result, impersonationLevel);
3538
if (string.Compare(statusDescription,
HttpChannelUtilities
.StatusDescriptionStrings.HttpContentTypeMissing, StringComparison.OrdinalIgnoreCase) == 0)
3612
string.Compare(response.StatusDescription,
HttpChannelUtilities
.StatusDescriptionStrings.HttpStatusServiceActivationException, StringComparison.OrdinalIgnoreCase) == 0)
3836
&& string.Compare(response.StatusDescription,
HttpChannelUtilities
.StatusDescriptionStrings.HttpStatusServiceActivationException, StringComparison.OrdinalIgnoreCase) == 0)
4245
HttpChannelUtilities
.CopyHeaders(this.httpRequestMessage, headers.Add);
System\ServiceModel\Channels\HttpChannelListener.cs (7)
1151
if (protocolException.Data.Contains(
HttpChannelUtilities
.HttpStatusCodeExceptionKey))
1153
statusCode = (HttpStatusCode)protocolException.Data[
HttpChannelUtilities
.HttpStatusCodeExceptionKey];
1154
protocolException.Data.Remove(
HttpChannelUtilities
.HttpStatusCodeExceptionKey);
1156
if (protocolException.Data.Contains(
HttpChannelUtilities
.HttpStatusDescriptionExceptionKey))
1158
statusDescription = (string)protocolException.Data[
HttpChannelUtilities
.HttpStatusDescriptionExceptionKey];
1159
protocolException.Data.Remove(
HttpChannelUtilities
.HttpStatusDescriptionExceptionKey);
1572
HttpChannelUtilities
.EnsureHttpRequestMessageContentNotNull(request);
System\ServiceModel\Channels\HttpCookieContainerBindingElement.cs (3)
11
[Obsolete(
HttpChannelUtilities
.ObsoleteDescriptionStrings.TypeObsoleteUseAllowCookies, false)]
15
[Obsolete(
HttpChannelUtilities
.ObsoleteDescriptionStrings.TypeObsoleteUseAllowCookies, false)]
21
[Obsolete(
HttpChannelUtilities
.ObsoleteDescriptionStrings.TypeObsoleteUseAllowCookies, false)]
System\ServiceModel\Channels\HttpMessageHandlerFactory.cs (2)
148
Type factoryType =
HttpChannelUtilities
.GetTypeFromAssembliesInCurrentDomain(configElement.Type);
176
Type handlerType =
HttpChannelUtilities
.GetTypeFromAssembliesInCurrentDomain(configElement.Handlers[i].Type);
System\ServiceModel\Channels\HttpPipeline.cs (1)
749
HttpChannelUtilities
.EnsureHttpResponseMessageContentNotNull(httpResponseMessage);
System\ServiceModel\Channels\HttpRequestContext.cs (10)
379
if (e.Data.Contains(
HttpChannelUtilities
.HttpStatusCodeKey))
381
if (e.Data[
HttpChannelUtilities
.HttpStatusCodeKey] is HttpStatusCode)
383
statusCode = (HttpStatusCode)e.Data[
HttpChannelUtilities
.HttpStatusCodeKey];
800
HttpChannelUtilities
.CopyHeaders(response, this.listenerContext.Response.Headers.Add);
844
string acceptEncoding = listenerContext.Request.Headers[
HttpChannelUtilities
.AcceptEncodingHeader];
880
HttpChannelUtilities
.CreateCommunicationException(listenerException));
1020
HttpChannelUtilities
.CreateCommunicationException(listenerException));
1033
HttpChannelUtilities
.CreateCommunicationException(listenerException));
1046
HttpChannelUtilities
.CreateCommunicationException(listenerException));
1059
HttpChannelUtilities
.CreateCommunicationException(listenerException));
System\ServiceModel\Channels\SharedHttpTransportManager.cs (1)
624
HttpChannelUtilities
.CreateCommunicationException(listenerException));
System\ServiceModel\Channels\WebSocketHelper.cs (1)
312
return
HttpChannelUtilities
.CreateCommunicationException(httpListenerException);