2 writes to m_ResponseData
System (2)
net\System\Net\_Connection.cs (2)
481
m_ResponseData
= new CoreResponseData();
2566
m_ResponseData
= new CoreResponseData();
39 references to m_ResponseData
System (39)
net\System\Net\_Connection.cs (39)
1391
m_ResponseData
.m_ConnectStream = null;
2144
m_ResponseData
.m_StatusCode = (HttpStatusCode) m_StatusLineValues.StatusCode;
2145
m_ResponseData
.m_StatusDescription = m_StatusLineValues.StatusDescription;
2146
m_ResponseData
.m_IsVersionHttp11 = m_StatusLineValues.MajorVersion >= 1 && m_StatusLineValues.MinorVersion >= 1;
2147
if (ServicePoint.HttpBehaviour==HttpBehaviour.Unknown || ServicePoint.HttpBehaviour==HttpBehaviour.HTTP11 && !
m_ResponseData
.m_IsVersionHttp11) {
2150
ServicePoint.HttpBehaviour =
m_ResponseData
.m_IsVersionHttp11 ? HttpBehaviour.HTTP11 : HttpBehaviour.HTTP10;
2180
string transferEncodingString =
m_ResponseData
.m_ResponseHeaders[HttpKnownHeaderNames.TransferEncoding];
2190
string contentLengthString =
m_ResponseData
.m_ResponseHeaders.ContentLength;
2222
dummyResponseStream = !request.CanGetResponseStream ||
m_ResponseData
.m_StatusCode < HttpStatusCode.OK ||
2223
m_ResponseData
.m_StatusCode == HttpStatusCode.NoContent || (
m_ResponseData
.m_StatusCode == HttpStatusCode.NotModified && contentLength < 0) ;
2249
else if (
m_ResponseData
.m_StatusCode == HttpStatusCode.Forbidden && NetworkStream is TlsStream)
2259
else if (
m_ResponseData
.m_StatusCode > HttpWebRequest.MaxOkStatus &&
2300
string connection =
m_ResponseData
.m_ResponseHeaders[HttpKnownHeaderNames.Connection];
2305
connection =
m_ResponseData
.m_ResponseHeaders[HttpKnownHeaderNames.ProxyConnection];
2394
if (
m_ResponseData
.m_StatusCode > HttpWebRequest.MaxOkStatus)
2428
if (m_CurrentRequest.IsWebSocketRequest &&
m_ResponseData
.m_StatusCode == HttpStatusCode.SwitchingProtocols)
2430
m_ResponseData
.m_ConnectStream = new ConnectStream(this, m_ReadBuffer, m_BytesScanned, bufferLeft, bufferLeft, fHaveChunked, m_CurrentRequest);
2438
m_ResponseData
.m_ConnectStream = new ConnectStream(this, m_ReadBuffer, m_BytesScanned, bytesToCopy, dummyResponseStream? 0: contentLength, fHaveChunked, m_CurrentRequest);
2446
m_ResponseData
.m_ConnectStream = new ConnectStream(this, m_ReadBuffer, m_BytesScanned, bufferLeft, dummyResponseStream? 0: contentLength, fHaveChunked, m_CurrentRequest);
2454
m_ResponseData
.m_ContentLength = contentLength;
2455
ConnectionReturnResult.Add(ref returnResult, m_CurrentRequest,
m_ResponseData
.Clone());
2615
m_ResponseData
.m_ResponseHeaders = new WebHeaderCollection(WebHeaderCollectionType.HttpWebResponse);
2643
parseSubStatus =
m_ResponseData
.m_ResponseHeaders.ParseHeaders(
2653
parseSubStatus =
m_ResponseData
.m_ResponseHeaders.ParseHeadersStrict(
2673
if (Logging.On) Logging.PrintInfo(Logging.Web, this, SR.GetString(SR.net_log_received_headers,
m_ResponseData
.m_ResponseHeaders.ToString(true)));
2675
GlobalLog.Print("Connection#" + ValidationHelper.HashString(this) + "::ParseResponseData() DataParseStatus.Done StatusCode:" + (int)
m_ResponseData
.m_StatusCode + " m_BytesRead:" + m_BytesRead + " m_BytesScanned:" + m_BytesScanned);
2679
string server =
m_ResponseData
.m_ResponseHeaders.Server;
2692
if(m_IISVersion == -1 &&
m_ResponseData
.m_StatusCode != HttpStatusCode.Continue){
2699
bool isUnknownInterimResponse = ServicePointManager.UseStrictRfcInterimResponseHandling ? ((int)
m_ResponseData
.m_StatusCode > 101 && (int)
m_ResponseData
.m_StatusCode < 200) : false;
2701
if (
m_ResponseData
.m_StatusCode == HttpStatusCode.Continue ||
m_ResponseData
.m_StatusCode == HttpStatusCode.BadRequest || isUnknownInterimResponse) {
2706
if (
m_ResponseData
.m_StatusCode == HttpStatusCode.BadRequest) {
2709
GlobalLog.Print("Connection#" + ValidationHelper.HashString(this) + "::ParseResponseData() got a 400 StatusDescription:" +
m_ResponseData
.m_StatusDescription);
2712
&&
m_ResponseData
.m_ResponseHeaders.Via != null
2713
&& string.Compare(
m_ResponseData
.m_StatusDescription, "Bad Request ( The HTTP request includes a non-supported header. Contact the Server administrator. )", StringComparison.OrdinalIgnoreCase)==0) {
2722
if (
m_ResponseData
.m_StatusCode == HttpStatusCode.Continue)
2740
continueResponseData =
m_ResponseData
;