public HttpWebRequestResponseData(HttpWebResponse response)
        {
            this._response = 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;
        }
예제 #2
0
        public HttpWebRequestResponseData(HttpWebResponse response)
        {
            this._response = 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;
        }