Home
last modified time | relevance | path

Searched refs:response_code (Results 1 – 25 of 26) sorted by relevance

12

/external/chromium/net/http/
Dhttp_cache_transaction.cc148 cancel_request &= (response_.headers->response_code() == 200); in ~Transaction()
889 if (response_.headers->response_code() == 206 || partial_.get()) { in BeginCacheRead()
923 if (response_.headers->response_code() != 206 && !partial_.get() && in BeginPartialCacheValidation()
1033 if (response_.headers->response_code() != 200 || truncated_ || in BeginExternallyConditionalizedRequest()
1114 if (response_.headers->response_code() == 206 && !enable_range_support_) in RequiresValidation()
1132 if (!enable_range_support_ && response_.headers->response_code() != 200) { in ConditionalizeRequest()
1138 if (response_.headers->response_code() != 200 && in ConditionalizeRequest()
1139 response_.headers->response_code() != 206) in ConditionalizeRequest()
1211 int response_code = headers->response_code(); in ValidatePartialResponse() local
1212 bool partial_response = enable_range_support_ ? response_code == 206 : false; in ValidatePartialResponse()
[all …]
Dpartial_data.cc127 DCHECK_EQ(headers->response_code(), 200); in UpdateFromStoredHeaders()
147 if (headers->response_code() == 200) { in UpdateFromStoredHeaders()
191 if (headers->response_code() == 304) { in ResponseHeadersOK()
Dhttp_response_headers.cc160 DCHECK(new_headers.response_code() == 304 || in Update()
161 new_headers.response_code() == 206); in Update()
752 bool HttpResponseHeaders::IsRedirectResponseCode(int response_code) { in IsRedirectResponseCode() argument
755 return (response_code == 301 || in IsRedirectResponseCode()
756 response_code == 302 || in IsRedirectResponseCode()
757 response_code == 303 || in IsRedirectResponseCode()
758 response_code == 307); in IsRedirectResponseCode()
Dhttp_response_headers.h176 static bool IsRedirectResponseCode(int response_code);
236 int response_code() const { return response_code_; } in response_code() function
Dhttp_network_transaction.cc339 DCHECK_EQ(407, headers->response_code()); in Read()
340 LogBlockedTunnelResponse(headers->response_code()); in Read()
988 switch (response_.headers->response_code()) { in DoReadHeadersComplete()
1020 LogBlockedTunnelResponse(response_.headers->response_code()); in DoReadHeadersComplete()
1030 if (response_.headers->response_code() / 100 == 1) { in DoReadHeadersComplete()
1394 int response_code) const { in LogBlockedTunnelResponse()
1395 LOG(WARNING) << "Blocked proxy response with status " << response_code in LogBlockedTunnelResponse()
1796 int status = headers->response_code(); in HandleAuthChallenge()
Dhttp_response_info.cc84 DCHECK_NE(headers->response_code(), -1); in InitFromPickle()
Dhttp_stream_parser.cc296 if (response_->headers->response_code() / 100 == 1) { in DoReadHeadersComplete()
481 switch (response_->headers->response_code()) { in CalculateResponseBodySize()
Dhttp_network_transaction.h145 void LogBlockedTunnelResponse(int response_code) const;
Dhttp_response_headers_unittest.cc66 EXPECT_EQ(test.expected_response_code, parsed->response_code()); in TestCommon()
Dhttp_network_transaction_unittest.cc1220 EXPECT_EQ(407, response->headers->response_code()); in TEST_F()
1244 EXPECT_EQ(407, response->headers->response_code()); in TEST_F()
1301 EXPECT_EQ(407, response->headers->response_code()); in TEST_F()
/external/chromium/net/ftp/
Dftp_network_transaction.cc202 int response_code) { in GetErrorClass() argument
203 if (response_code >= 100 && response_code <= 199) in GetErrorClass()
206 if (response_code >= 200 && response_code <= 299) in GetErrorClass()
209 if (response_code >= 300 && response_code <= 399) in GetErrorClass()
212 if (response_code >= 400 && response_code <= 499) in GetErrorClass()
215 if (response_code >= 500 && response_code <= 599) in GetErrorClass()
Dftp_network_transaction.h112 static ErrorClass GetErrorClass(int response_code);
/external/chromium/net/base/
Dfilter_unittest.h31 void SetResponseCode(int response_code) { response_code_ = response_code; } in SetResponseCode() argument
/external/chromium/third_party/libevent/test/
Dregress_http.c505 if (req->response_code != HTTP_OK) { in http_request_done()
534 if (req->response_code != HTTP_OK) { in http_request_empty_done()
587 if (req->response_code != HTTP_OK) { in http_dispatcher_test_done()
768 if (req->response_code != HTTP_OK) { in http_postrequest_done()
850 if (req == NULL || req->response_code != HTTP_OK) { in close_detect_done()
888 if (req != NULL && req->response_code != HTTP_OK) { in close_detect_cb()
1239 if (req->response_code != HTTP_OK) { in http_chunked_request_done()
Dregress_rpc.c161 if (req->response_code != HTTP_SERVUNAVAIL) { in rpc_postrequest_failure()
239 if (req->response_code != HTTP_OK) { in rpc_postrequest_done()
/external/chromium/third_party/libevent/
Dhttp.c466 req->major, req->minor, req->response_code, in evhttp_make_header_response()
1238 req->response_code = atoi(number); in evhttp_parse_response_line()
1239 if (!evhttp_valid_response_code(req->response_code)) { in evhttp_parse_response_line()
1646 if (req->response_code == HTTP_NOCONTENT || in evhttp_read_header()
1647 req->response_code == HTTP_NOTMODIFIED || in evhttp_read_header()
1648 (req->response_code >= 100 && req->response_code < 200)) { in evhttp_read_header()
1650 __func__, req->response_code)); in evhttp_read_header()
1994 req->response_code = code; in evhttp_response_code()
Devhttp.h219 int response_code; /* HTTP Response code */ member
/external/chromium/net/url_request/
Durl_request_http_job.cc221 return response_info_->headers->response_code(); in GetResponseCode()
303 DCHECK(response_info_->headers->response_code() == 401 || in GetAuthChallengeInfo()
304 response_info_->headers->response_code() == 407); in GetAuthChallengeInfo()
Durl_request_test_job.cc196 *http_status_code = response_headers_->response_code(); in IsRedirectResponse()
Durl_request_unittest.cc1803 EXPECT_EQ(200, req.response_headers()->response_code()); in TEST_F()
1835 EXPECT_EQ(200, req.response_headers()->response_code()); in TEST_F()
1867 EXPECT_EQ(200, req.response_headers()->response_code()); in TEST_F()
1896 EXPECT_EQ(200, req.response_headers()->response_code()); in TEST_F()
1926 EXPECT_EQ(200, req.response_headers()->response_code()); in TEST_F()
Durl_request_job.cc86 *http_status_code = headers->response_code(); in IsRedirectResponse()
/external/chromium/net/websockets/
Dwebsocket.cc224 if (headers->response_code() == 407) { in CheckHandshake()
229 << "response_code=" << headers->response_code() in CheckHandshake()
/external/chromium/net/socket_stream/
Dsocket_stream.cc660 switch (headers->response_code()) { in DoReadTunnelHeadersComplete()
/external/chromium/net/tools/flip_server/
Dflip_in_mem_edsm_server.cc1546 block["status"] = headers.response_code().as_string(); in SendSynStreamImpl()
1573 block["status"] = headers.response_code().as_string() + " " + in SendSynReplyImpl()
Dbalsa_headers.h1007 const base::StringPiece response_code() const { in response_code() function

12