コード例 #1
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;
        }
コード例 #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;
        }