public HttpWebRequestResponseData(HttpWebResponse response) { _responseBody = new HttpWebResponseBody(response); this.StatusCode = response.StatusCode; this.IsSuccessStatusCode = this.StatusCode >= HttpStatusCode.OK && this.StatusCode <= (HttpStatusCode)299; this.ContentType = response.ContentType; this.ContentLength = response.ContentLength; CopyHeaderValues(response); }
public HttpWebRequestResponseData(HttpWebResponse response) { _responseBody = new HttpWebResponseBody(response); this.StatusCode = response.StatusCode; this.IsSuccessStatusCode = this.StatusCode >= HttpStatusCode.OK && this.StatusCode <= (HttpStatusCode)299; this.ContentType = response.ContentType; this.ContentLength = response.ContentLength; CopyHeaderValues(response); }