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