Lines Matching refs:http_response
25 #include "net/test/embedded_test_server/http_response.h"
46 scoped_ptr<net::test_server::BasicHttpResponse> http_response(
48 http_response->set_code(net::HTTP_MOVED_PERMANENTLY);
49 http_response->AddCustomHeader("Location", redirect_target);
50 return http_response.PassAs<net::test_server::HttpResponse>();
68 scoped_ptr<net::test_server::BasicHttpResponse> http_response(
70 http_response->set_code(net::HTTP_OK);
71 http_response->set_content(header_value);
72 return http_response.PassAs<net::test_server::HttpResponse>();
80 scoped_ptr<net::test_server::BasicHttpResponse> http_response(
82 http_response->set_code(net::HTTP_OK);
92 http_response->AddCustomHeader("Set-Cookie", cookies[i]);
94 return http_response.PassAs<net::test_server::HttpResponse>();
120 scoped_ptr<net::test_server::BasicHttpResponse> http_response(
122 http_response->set_code(net::HTTP_OK);
123 http_response->AddCustomHeader(header_name, header_value);
124 return http_response.PassAs<net::test_server::HttpResponse>();