/external/chromium_org/net/http/ |
H A D | proxy_connect_redirect_http_stream.cc | 34 HttpResponseInfo* response, 32 SendRequest( const HttpRequestHeaders& request_headers, HttpResponseInfo* response, const CompletionCallback& callback) argument
|
/external/chromium_org/net/quic/ |
H A D | quic_http_stream.cc | 104 HttpResponseInfo* response, 109 CHECK(response); 136 // Store the response info. 137 response_info_ = response; 161 // Check if we already have the response headers. If so, return synchronously. 165 // Still waiting for the response, return IO_PENDING. 292 // Are we still reading the response headers. 541 // Put the peer's IP address and port into the response. 103 SendRequest(const HttpRequestHeaders& request_headers, HttpResponseInfo* response, const CompletionCallback& callback) argument
|
H A D | quic_http_stream_test.cc | 424 std::string response = SpdyUtils::SerializeUncompressedHeaders(headers); local 425 EXPECT_LT(4096u, response.length()); 426 stream_->OnDataReceived(response.data(), response.length()); 506 // Send the response headers (but not the body). 516 // Send the response body. 556 // Send the response headers (but not the body). 566 // Send the response body. 606 // Send the response headers (but not the body). 616 // Send the response bod [all...] |
H A D | quic_network_transaction_unittest.cc | 225 const HttpResponseInfo* response = trans->GetResponseInfo(); local 226 ASSERT_TRUE(response != NULL); 227 ASSERT_TRUE(response->headers.get() != NULL); 228 EXPECT_EQ("HTTP/1.1 200 OK", response->headers->GetStatusLine()); 229 EXPECT_TRUE(response->was_fetched_via_spdy); 230 EXPECT_TRUE(response->was_npn_negotiated); 232 response->connection_info); 236 const HttpResponseInfo* response = trans->GetResponseInfo(); local 237 ASSERT_TRUE(response != NULL); 238 ASSERT_TRUE(response [all...] |
H A D | quic_spdy_server_stream.cc | 112 // Find response in cache. If not found, send error response. 113 const QuicInMemoryCache::Response* response = local 115 if (response == NULL) { 120 if (response->response_type() == QuicInMemoryCache::CLOSE_CONNECTION) { 121 DVLOG(1) << "Special response: closing connection."; 126 if (response->response_type() == QuicInMemoryCache::IGNORE_REQUEST) { 127 DVLOG(1) << "Special response: ignoring request."; 131 DVLOG(1) << "Sending response for stream " << id(); 132 SendHeadersAndBody(response [all...] |
/external/chromium_org/net/server/ |
H A D | http_server.cc | 71 const HttpServerResponseInfo& response) { 72 SendRaw(connection_id, response.Serialize()); 79 HttpServerResponseInfo response(status_code); 80 response.SetContentHeaders(data.size(), content_type); 81 SendResponse(connection_id, response); 70 SendResponse(int connection_id, const HttpServerResponseInfo& response) argument
|
H A D | http_server_response_info.cc | 22 HttpServerResponseInfo response(HTTP_NOT_FOUND); 23 response.SetBody(std::string(), "text/html"); 24 return response; 30 HttpServerResponseInfo response(HTTP_INTERNAL_SERVER_ERROR); 31 response.SetBody(body, "text/html"); 32 return response; 56 std::string response = base::StringPrintf( local 60 response += header->first + ":" + header->second + "\r\n"; 62 return response + "\r\n" + body_;
|
H A D | http_server_response_info_unittest.cc | 12 HttpServerResponseInfo response; local 13 ASSERT_EQ(HTTP_OK, response.status_code()); 14 ASSERT_EQ("HTTP/1.1 200 OK\r\n\r\n", response.Serialize()); 18 HttpServerResponseInfo response; local 19 response.AddHeader("A", "1"); 20 response.AddHeader("A", "2"); 21 ASSERT_EQ("HTTP/1.1 200 OK\r\nA:1\r\nA:2\r\n\r\n", response.Serialize()); 25 HttpServerResponseInfo response; local 26 ASSERT_EQ(std::string(), response.body()); 27 response 35 HttpServerResponseInfo response = HttpServerResponseInfo::CreateFor404(); local 43 HttpServerResponseInfo response = local [all...] |
H A D | http_server_unittest.cc | 156 bool IsCompleteResponse(const std::string& response) { argument 158 int end_of_headers = HttpUtil::LocateEndOfHeaders(response.data(), 159 response.size()); 163 // Return true if response has data equal to or more than content length. 164 int64 body_size = static_cast<int64>(response.size()) - end_of_headers; 167 HttpUtil::AssembleRawHeaders(response.data(), end_of_headers))); 447 std::string response; local 448 ASSERT_TRUE(client.ReadResponse(&response)); 449 ASSERT_TRUE(StartsWithASCII(response, "HTTP/1.1 200 OK", true)); 450 ASSERT_TRUE(EndsWith(response, "Respons 463 std::string response; local [all...] |
/external/chromium_org/net/socket/ |
H A D | socks_client_socket.cc | 416 const SOCKS4ServerResponse* response = local 419 if (response->reserved_null != 0x00) { 420 LOG(ERROR) << "Unknown response from SOCKS server."; 424 switch (response->code) { 440 LOG(ERROR) << "SOCKS server sent unknown response";
|
/external/chromium_org/net/socket_stream/ |
H A D | socket_stream_unittest.cc | 284 const char* request, const char* response) { 286 handshake_response_ = response; 306 // handshake response received. 322 // handshake response received. 283 SetWebSocketHandshakeMessage( const char* request, const char* response) argument
|
/external/chromium_org/net/spdy/ |
H A D | spdy_http_stream.cc | 107 // Check if we already have the response headers. If so, return synchronously. 113 // Still waiting for the response, return IO_PENDING. 206 HttpResponseInfo* response, 218 // so we set the response's request time to be the actual one 232 CHECK(response); 238 // b) A client request which matches a response that the server has already 241 *response = *(push_response_info_.get()); 247 response_info_ = response; 249 // Put the peer's IP address and port into the response. 260 // response i 205 SendRequest(const HttpRequestHeaders& request_headers, HttpResponseInfo* response, const CompletionCallback& callback) argument [all...] |
H A D | spdy_http_stream_unittest.cc | 178 HttpResponseInfo response; local 192 EXPECT_EQ(ERR_IO_PENDING, http_stream->SendRequest(headers, &response, 355 HttpResponseInfo response; local 365 headers, &response, callback.callback())); 368 // This results in writing the post body and reading the response headers. 433 HttpResponseInfo response; local 436 EXPECT_EQ(ERR_IO_PENDING, http_stream->SendRequest(headers, &response, 452 // Read response headers. 456 // Read and check |chunk1| response. 464 // Read and check |chunk2| response 532 HttpResponseInfo response; local 617 HttpResponseInfo response; local 672 HttpResponseInfo response; local 746 HttpResponseInfo response; local [all...] |
H A D | spdy_http_utils.cc | 39 HttpResponseInfo* response) { 95 response->headers = new HttpResponseHeaders(raw_headers); 96 response->was_fetched_via_spdy = true; 37 SpdyHeadersToHttpResponse(const SpdyHeaderBlock& headers, SpdyMajorVersion protocol_version, HttpResponseInfo* response) argument
|
H A D | spdy_network_transaction_unittest.cc | 233 const HttpResponseInfo* response = trans_->GetResponseInfo(); local 234 ASSERT_TRUE(response != NULL); 235 ASSERT_TRUE(response->headers.get() != NULL); 236 EXPECT_EQ("HTTP/1.1 200 OK", response->headers->GetStatusLine()); 237 EXPECT_EQ(spdy_enabled_, response->was_fetched_via_spdy); 242 response->connection_info); 245 response->connection_info); 248 EXPECT_TRUE(response->was_npn_negotiated); 250 EXPECT_TRUE(!response->was_npn_negotiated); 256 response 617 RunServerPushTest(OrderedSocketData* data, HttpResponseInfo* response, HttpResponseInfo* push_response, const std::string& expected) argument 2045 const HttpResponseInfo* response = helper.trans()->GetResponseInfo(); local 2155 const HttpResponseInfo* response = trans->GetResponseInfo(); local 2654 HttpResponseInfo response; local 2702 HttpResponseInfo response; local 2748 HttpResponseInfo response; local 2823 HttpResponseInfo response = *trans->GetResponseInfo(); local 2869 HttpResponseInfo response; local 2931 HttpResponseInfo response; local 2991 HttpResponseInfo response; local 3068 HttpResponseInfo response = *trans->GetResponseInfo(); local 3129 HttpResponseInfo response = *trans->GetResponseInfo(); local 3189 HttpResponseInfo response = *trans->GetResponseInfo(); local 3863 const HttpResponseInfo* response = trans->GetResponseInfo(); local 3955 const HttpResponseInfo* response = trans->GetResponseInfo(); local 4044 const HttpResponseInfo* response = trans->GetResponseInfo(); local 4134 const HttpResponseInfo* response = trans->GetResponseInfo(); local 4216 const HttpResponseInfo* response = trans->GetResponseInfo(); local 4544 const HttpResponseInfo* response = trans->GetResponseInfo(); local 4645 HttpResponseInfo response = *trans->GetResponseInfo(); local 4706 const HttpResponseInfo* response = trans->GetResponseInfo(); local 4901 const HttpResponseInfo* response = trans->GetResponseInfo(); local 5095 HttpResponseInfo response; local 5158 HttpResponseInfo response; local 5296 HttpResponseInfo response; local 5463 HttpResponseInfo response = *trans->GetResponseInfo(); local 5627 HttpResponseInfo response; local 5727 HttpResponseInfo response = *trans->GetResponseInfo(); local 5993 const HttpResponseInfo* response = trans->GetResponseInfo(); local [all...] |
H A D | spdy_proxy_client_socket_unittest.cc | 230 const HttpResponseInfo* response = sock_->GetConnectResponseInfo(); local 231 ASSERT_TRUE(response != NULL); 232 ASSERT_EQ(200, response->headers->response_code()); 423 const HttpResponseInfo* response = sock_->GetConnectResponseInfo(); local 424 ASSERT_TRUE(response != NULL); 425 ASSERT_EQ(407, response->headers->response_code()); 465 const HttpResponseInfo* response = sock_->GetConnectResponseInfo(); local 466 ASSERT_TRUE(response != NULL); 468 const HttpResponseHeaders* headers = response->headers.get();
|
H A D | spdy_stream_unittest.cc | 207 // Send some basic response headers. 208 SpdyHeaderBlock response; local 209 response[spdy_util_.GetStatusKey()] = "200"; 210 response[spdy_util_.GetVersionKey()] = "OK"; 212 response, base::Time::Now(), base::TimeTicks::Now()); 313 // frame-sized chunks for a request/response (i.e., an HTTP-like) 811 // request/response (i.e., an HTTP-like) stream resumes after a stall
|
/external/chromium_org/net/test/android/javatests/src/org/chromium/net/test/util/ |
H A D | TestWebServer.java | 192 * This only gets the URL, you still need to set the response if you intend to access it. 202 * Sets a 404 (not found) response to be returned when a particular request path is passed in. 206 * response. 215 * Sets a response to be returned when a particular request path is passed 219 * @param responseString The response body that will be returned. 221 * response (null is acceptable). 223 * response. 233 * Sets a response to be returned when a particular request path is passed 238 * @param responseString The response body that will be returned. 240 * response (nul 439 setDateHeaders(HttpResponse response) argument [all...] |
/external/chromium_org/net/test/embedded_test_server/ |
H A D | embedded_test_server.cc | 232 scoped_ptr<HttpResponse> response = local 234 if (response.get()) { 235 connection->SendResponse(response.Pass());
|
H A D | http_response_unittest.cc | 13 BasicHttpResponse response; local 14 response.set_code(HTTP_OK); 15 response.set_content("Sample content - Hello world!"); 16 response.set_content_type("text/plain"); 17 response.AddCustomHeader("Simple-Header", "Simple value."); 27 EXPECT_EQ(kExpectedResponseString, response.ToResponseString());
|
/external/chromium_org/net/third_party/nss/ssl/ |
H A D | sslcon.c | 753 SSL_TRC(3, ("%d: SSL[%d]: sending certificate response", 2160 * Called from ssl2_HandleMessage in response to SSL_MT_SERVER_FINISHED message. 2240 SECItem *response) 2272 rv = SGN_End(sgn, response); 2294 SECItem response; local 2302 response.data = NULL; 2347 rv = ssl2_SignResponse(ss, key, &response); 2353 /* Send response message */ 2354 ret = ssl2_SendCertificateResponseMessage(ss, &cert->derCert, &response); 2383 if ( response 2238 ssl2_SignResponse(sslSocket *ss, SECKEYPrivateKey *key, SECItem *response) argument 2396 ssl2_HandleClientCertificate(sslSocket * ss, PRUint8 certType, PRUint8 * cd, unsigned int cdLen, PRUint8 * response, unsigned int responseLen) argument [all...] |
/external/chromium_org/net/tools/dns_fuzz_stub/ |
H A D | dns_fuzz_stub.cc | 107 if (!dict->GetList("response", &resp_list)) { 108 LOG(ERROR) << filename << ": response is missing or not a list."; 118 LOG(ERROR) << filename << ": response[" << i << "] is not an integer."; 122 LOG(ERROR) << filename << ": response[" << i << "] is out of range."; 140 net::DnsResponse response; local 141 std::copy(resp_buf.begin(), resp_buf.end(), response.io_buffer()->data()); 143 if (!response.InitParse(resp_buf.size(), query)) { 150 net::DnsResponse::Result result = response.ParseToAddressList( 157 // Print the response in one compact line.
|
/external/chromium_org/net/tools/quic/ |
H A D | quic_in_memory_cache_test.cc | 63 // Check if response already exists and matches. 80 std::string response_body("hello response"); 86 const QuicInMemoryCache::Response* response = local 88 ASSERT_TRUE(response); 89 EXPECT_EQ("200", response->headers().response_code()); 90 EXPECT_EQ(response_body.size(), response->body().length()); 93 response = cache->GetResponse(request_headers); 94 ASSERT_TRUE(response); 95 EXPECT_EQ("200", response->headers().response_code()); 96 EXPECT_EQ(response_body.size(), response 103 const QuicInMemoryCache::Response* response = local 117 const QuicInMemoryCache::Response* response = local 131 const QuicInMemoryCache::Response* response = local [all...] |
H A D | quic_spdy_server_stream.cc | 92 // Find response in cache. If not found, send error response. 93 const QuicInMemoryCache::Response* response = local 95 if (response == NULL) { 100 if (response->response_type() == QuicInMemoryCache::CLOSE_CONNECTION) { 101 DVLOG(1) << "Special response: closing connection."; 106 if (response->response_type() == QuicInMemoryCache::IGNORE_REQUEST) { 107 DVLOG(1) << "Special response: ignoring request."; 111 DVLOG(1) << "Sending response for stream " << id(); 112 SendHeadersAndBody(response [all...] |
/external/chromium_org/net/url_request/ |
H A D | test_url_fetcher_factory.cc | 170 int response = response_writer_->Initialize(CompletionCallback()); local 172 DCHECK_EQ(OK, response); 175 response = response_writer_->Write(buffer.get(), 178 DCHECK_EQ(static_cast<int>(fake_response_string_.size()), response); local 179 response = response_writer_->Finish(CompletionCallback()); 180 DCHECK_EQ(OK, response); 277 void TestURLFetcher::SetResponseString(const std::string& response) { argument 279 fake_response_string_ = response; 402 // If we don't have a baked response for that URL we return NULL. 403 DLOG(ERROR) << "No baked response fo 423 FakeURLResponse response; local [all...] |