3 instantiations of HttpWebResponse
System (3)
net\System\Net\HttpWebRequest.cs (3)
3739
_HttpResponse = new
HttpWebResponse
(GetRemoteResourceUri(), CurrentMethod,
4241
_HttpResponse = new
HttpWebResponse
(GetRemoteResourceUri(), CurrentMethod, responseData,
4308
_HttpResponse = new
HttpWebResponse
(GetRemoteResourceUri(), CurrentMethod, responseData,
163 references to HttpWebResponse
PresentationCore (7)
Core\CSharp\MS\Internal\AppModel\CookieHandler.cs (2)
77
HttpWebResponse
httpResponse = response as
HttpWebResponse
;
Core\CSharp\MS\Internal\IO\Packaging\ByteRangeDownloader.cs (3)
586
HttpWebResponse
webResponse = null;
600
webResponse = (
HttpWebResponse
)WpfWebRequestHelper.EndGetResponse(_webRequest, ar);
717
private bool WriteByteRange(
HttpWebResponse
response, int offset, int length)
Core\CSharp\MS\Internal\WpfWebRequestHelper.cs (2)
238
if (response is
HttpWebResponse
&& !(request is HttpWebRequest))
260
if (response is
HttpWebResponse
&& !(request is HttpWebRequest))
System (54)
net\System\Net\_Connection.cs (5)
3747
HttpWebResponse
connectResponse = (
HttpWebResponse
)req.GetResponse();
3792
HttpWebResponse
connectResponse = null;
3820
connectResponse = (
HttpWebResponse
)connectRequest.EndGetResponse(asyncResult);
3823
connectResponse = (
HttpWebResponse
)connectRequest.GetResponse();
net\System\Net\_CookieModule.cs (2)
69
HttpWebResponse
response = httpWebRequest._HttpResponse as
HttpWebResponse
;
net\System\Net\Cache\_Rfc2616CacheValidators.cs (7)
233
HttpWebResponse
resp = ctx.Response as
HttpWebResponse
;
315
HttpWebResponse
resp = ctx.Response as
HttpWebResponse
;
670
internal static TriState OnUpdateCache(HttpRequestCacheValidator ctx,
HttpWebResponse
resp) {
1042
public static CacheValidationStatus ValidateCacheAfterResponse(HttpRequestCacheValidator ctx,
HttpWebResponse
resp) {
1757
public static void ReplaceOrUpdateCacheHeaders(HttpRequestCacheValidator ctx,
HttpWebResponse
resp) {
net\System\Net\Cache\HttpRequestCacheValidator.cs (6)
347
HttpWebResponse
resp = Response as
HttpWebResponse
;
415
HttpWebResponse
resp = Response as
HttpWebResponse
;
778
HttpWebResponse
resp = Response as
HttpWebResponse
;
net\System\Net\FtpWebRequest.cs (8)
606
m_FtpWebResponse = new FtpWebResponse((
HttpWebResponse
)httpWebRequest.GetResponse());
609
webException.Response is
HttpWebResponse
)
614
new FtpWebResponse((
HttpWebResponse
)webException.Response),
830
m_FtpWebResponse = new FtpWebResponse((
HttpWebResponse
)GetHttpWebRequest().EndGetResponse(asyncResult));
836
webException.Response is
HttpWebResponse
)
841
new FtpWebResponse((
HttpWebResponse
)webException.Response),
2232
HttpWebResponse
httpWebResponse = webException.Response as
HttpWebResponse
;
net\System\Net\FtpWebResponse.cs (2)
29
private
HttpWebResponse
m_HttpWebResponse;
52
internal FtpWebResponse(
HttpWebResponse
httpWebResponse) {
net\System\Net\HttpVersion.cs (1)
12
/// <see cref='System.Net.
HttpWebResponse
'/> classes.
net\System\Net\HttpWebRequest.cs (17)
169
internal
HttpWebResponse
_HttpResponse;
2073
HttpWebResponse
httpWebResponse = castedAsyncResult.InternalWaitForCompletion() as
HttpWebResponse
;
2096
HttpWebResponse
httpWebResponse = we.Response as
HttpWebResponse
;
2190
HttpWebResponse
httpWebResponse = null;
2198
httpWebResponse = _ReadAResult.Result as
HttpWebResponse
;
2263
httpWebResponse = _ReadAResult.InternalWaitForCompletion() as
HttpWebResponse
;
2291
HttpWebResponse
httpWebResponse = we.Response as
HttpWebResponse
;
2302
private void InitLifetimeTracking(
HttpWebResponse
httpWebResponse)
3925
HttpWebResponse
chkResponse = _HttpResponse;
3963
chkResponse = _ReadAResult.Result as
HttpWebResponse
;
5676
HttpWebResponse
response = _HttpResponse;
6018
HttpWebResponse
priorResponse = _HttpResponse;
6093
private void FinishRequest(
HttpWebResponse
response, Exception errorException)
6303
private static int GetStatusCode(
HttpWebResponse
httpWebResponse)
net\System\Net\NetWebProxyFinder.cs (2)
285
HttpWebResponse
httpResponse = response as
HttpWebResponse
;
net\System\Net\WebSockets\ClientWebSocket.cs (4)
152
HttpWebResponse
response = null;
162
response = await request.GetResponseAsync().SuppressContextFlow() as
HttpWebResponse
;
204
private void ConnectExceptionCleanup(
HttpWebResponse
response)
260
private string ValidateResponse(HttpWebRequest request,
HttpWebResponse
response)
System.Data.Services.Client (34)
System\Data\Services\Client\DataServiceContext.cs (13)
4071
private
HttpWebResponse
batchResponse;
4293
HttpWebResponse
httpWebResponse = (
HttpWebResponse
)httpWebRequest.GetResponse();
4320
HttpWebResponse
response = null;
4395
response = (
HttpWebResponse
)httpWebRequest.GetResponse();
4886
private void HandleOperationException(Exception e,
HttpWebResponse
response)
4922
private void HandleOperationResponse(
HttpWebResponse
response)
5007
private void HandleOperationResponseData(
HttpWebResponse
response)
5915
HttpWebResponse
response = null;
5919
response = (
HttpWebResponse
)httpWebRequest.EndGetResponse(asyncResult);
5923
response = (
HttpWebResponse
)e.Response;
6130
internal
HttpWebResponse
HttpWebResponse
6260
HttpWebResponse
response = this.HttpWebResponse;
System\Data\Services\Client\DataServiceStreamResponse.cs (2)
28
private
HttpWebResponse
response;
38
internal DataServiceStreamResponse(
HttpWebResponse
response)
System\Data\Services\Client\GetReadStreamResult.cs (8)
31
private
HttpWebResponse
response;
105
System.Net.
HttpWebResponse
webresponse = null;
108
webresponse = (System.Net.
HttpWebResponse
)this.request.GetResponse();
112
webresponse = (System.Net.
HttpWebResponse
)ex.Response;
178
HttpWebResponse
webresponse = null;
181
webresponse = (
HttpWebResponse
)request.EndGetResponse(asyncResult);
185
webresponse = (
HttpWebResponse
)e.Response;
212
private void SetHttpWebResponse(
HttpWebResponse
webResponse)
System\Data\Services\Client\QueryResult.cs (8)
44
private
HttpWebResponse
httpWebResponse;
217
HttpWebResponse
response = null;
220
response = (
HttpWebResponse
)this.Request.GetResponse();
224
response = (
HttpWebResponse
)ex.Response;
439
protected virtual void SetHttpWebResponse(
HttpWebResponse
response)
553
HttpWebResponse
response = null;
556
response = (
HttpWebResponse
)httpWebRequest.EndGetResponse(asyncResult);
560
response = (
HttpWebResponse
)e.Response;
System\Data\Services\Client\WebUtil.cs (3)
87
internal static void GetHttpWebResponse(InvalidOperationException exception, ref
HttpWebResponse
response)
94
response = (
HttpWebResponse
)webexception.Response;
112
internal static Dictionary<string, string> WrapResponseHeaders(
HttpWebResponse
response)
System.Net (1)
AssemblyInfo.cs (1)
24
[assembly: TypeForwardedToAttribute(typeof(System.Net.
HttpWebResponse
))]
System.Runtime.Remoting (10)
channels\http\httpclientchannel.cs (10)
484
HttpWebResponse
response = null;
487
response = (
HttpWebResponse
)httpWebRequest.GetResponse();
508
private static void ProcessResponseException(WebException webException, out
HttpWebResponse
response)
517
response = webException.Response as
HttpWebResponse
;
744
private void ReceiveAndProcess(
HttpWebResponse
response,
772
private static ITransportHeaders CollectResponseHeaders(
HttpWebResponse
response)
925
internal
HttpWebResponse
WebResponse;
1074
HttpWebResponse
httpWebResponse = null;
1078
httpWebResponse = (
HttpWebResponse
)httpWebRequest.EndGetResponse(iar);
1116
HttpWebResponse
webResponse = asyncRequestState.WebResponse;
System.ServiceModel (42)
System\ServiceModel\Channels\ClientWebSocketTransportDuplexSessionChannel.cs (10)
86
HttpWebResponse
response = null;
89
response = (
HttpWebResponse
)this.httpWebRequest.EndGetResponse(result);
126
HttpWebResponse
response = null;
139
response = (
HttpWebResponse
)request.GetResponse();
182
static void CheckResponseHeader(
HttpWebResponse
response, string headerKey, string expectedValue, bool ignoreCase)
207
HttpWebResponse
webResponse = (
HttpWebResponse
)ex.Response;
263
void CleanupOnError(HttpWebRequest request,
HttpWebResponse
response)
357
void HandleHttpWebResponse(HttpWebRequest request,
HttpWebResponse
response)
430
void ValidateHttpWebResponse(
HttpWebResponse
response)
System\ServiceModel\Channels\HttpChannelFactory.cs (9)
356
HttpWebResponse
response)
373
SecurityMessageProperty CreateMutuallyAuthenticatedReplySecurityProperty(
HttpWebResponse
response)
592
static internal void TraceResponseReceived(
HttpWebResponse
response, Message message, object receiver)
1298
HttpWebResponse
response = null;
1304
response = (
HttpWebResponse
)webRequest.GetResponse();
1398
HttpWebResponse
response;
1659
HttpWebResponse
response = null;
1666
response = (
HttpWebResponse
)request.EndGetResponse(result);
1759
bool ProcessResponse(
HttpWebResponse
response, WebException responseException)
System\ServiceModel\Channels\HttpChannelHelpers.cs (18)
71
internal static HttpInput CreateHttpInput(
HttpWebResponse
httpWebResponse, IHttpTransportFactorySettings settings, ChannelBinding channelBinding)
819
HttpWebResponse
httpWebResponse;
824
public WebResponseHttpInput(
HttpWebResponse
httpWebResponse, IHttpTransportFactorySettings settings, ChannelBinding channelBinding)
935
HttpWebResponse
webResponse;
938
public WebResponseInputStream(
HttpWebResponse
httpWebResponse)
944
public WebResponseInputStream(
HttpWebResponse
httpWebResponse, byte[] prereadBuffer)
3292
HttpWebResponse
webResponse, Message replyMessage)
3500
public static
HttpWebResponse
ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)
3502
HttpWebResponse
response = null;
3507
response = (
HttpWebResponse
)webException.Response;
3609
HttpWebResponse
response = (
HttpWebResponse
)webException.Response;
3635
public static Exception CreateResponseWebException(WebException webException,
HttpWebResponse
response)
3714
static Exception CreateUnexpectedResponseException(WebException responseException,
HttpWebResponse
response)
3731
static string GetResponseStreamString(
HttpWebResponse
webResponse, out int bytesRead)
3759
static bool ValidateEmptyContent(
HttpWebResponse
response)
3777
static void ValidateAuthentication(HttpWebRequest request,
HttpWebResponse
response,
3822
public static HttpInput ValidateRequestReplyResponse(HttpWebRequest request,
HttpWebResponse
response,
System\ServiceModel\Channels\HttpsChannelFactory.cs (1)
76
HttpWebResponse
response)
System\ServiceModel\Description\MetadataExchangeClient.cs (4)
779
HttpWebResponse
response;
797
response = (
HttpWebResponse
)request.GetResponse();
803
internal static XmlReader GetXmlReader(
HttpWebResponse
response, long maxMessageSize, XmlDictionaryReaderQuotas readerQuotas)
941
MetadataLocationRetriever.GetXmlReader((
HttpWebResponse
)request.EndGetResponse(result), this.maxMessageSize, this.readerQuotas))
System.Web.Extensions (6)
ClientServices\Providers\ProxyHelper.cs (6)
71
using(
HttpWebResponse
response = (
HttpWebResponse
)request.GetResponse()) {
92
HttpWebResponse
response = (
HttpWebResponse
) we.Response;
101
private static void GetCookiesFromResponse(
HttpWebResponse
response, CookieContainer cookies, string serverUri, string username,
139
private static string GetResponseString(
HttpWebResponse
response)
System.Web.Services (9)
System\Web\Services\Discovery\DiscoveryClientProtocol.cs (2)
251
HttpWebResponse
httpResponse = response as
HttpWebResponse
;
System\Web\Services\Protocols\HttpClientProtocol.cs (2)
329
HttpWebResponse
httpResponse = response as
HttpWebResponse
;
System\Web\Services\Protocols\RequestResponse.cs (3)
128
if (response is
HttpWebResponse
)
130
HttpWebResponse
httpResponse = (
HttpWebResponse
)response;
System\Web\Services\Protocols\SoapClientProtocol.cs (2)
595
HttpWebResponse
httpResponse = response as
HttpWebResponse
;