Home
last modified time | relevance | path

Searched refs:response (Results 1 – 25 of 1198) sorted by relevance

12345678910>>...48

/external/libmicrohttpd/src/microhttpd/
Dresponse.c51 add_response_entry (struct MHD_Response *response, in add_response_entry() argument
58 if ( (NULL == response) || in add_response_entry()
84 hdr->next = response->first_header; in add_response_entry()
85 response->first_header = hdr; in add_response_entry()
100 MHD_add_response_header (struct MHD_Response *response, in MHD_add_response_header() argument
103 return add_response_entry (response, in MHD_add_response_header()
120 MHD_add_response_footer (struct MHD_Response *response, in MHD_add_response_footer() argument
123 return add_response_entry (response, in MHD_add_response_footer()
140 MHD_del_response_header (struct MHD_Response *response, in MHD_del_response_header() argument
150 pos = response->first_header; in MHD_del_response_header()
[all …]
/external/vboot_reference/firmware/lib/tpm_lite/
Dtlcl.c64 uint8_t* response, int max_length) { in TlclSendReceiveNoRetry() argument
77 response, &response_length); in TlclSendReceiveNoRetry()
85 result = TpmReturnCode(response); in TlclSendReceiveNoRetry()
93 response[0], response[1], in TlclSendReceiveNoRetry()
94 response[2], response[3], response[4], response[5], in TlclSendReceiveNoRetry()
95 response[6], response[7], response[8], response[9])); in TlclSendReceiveNoRetry()
108 uint32_t TlclSendReceive(const uint8_t* request, uint8_t* response, in TlclSendReceive() argument
110 uint32_t result = TlclSendReceiveNoRetry(request, response, max_length); in TlclSendReceive()
123 result = TlclSendReceiveNoRetry(request, response, max_length); in TlclSendReceive()
131 result = TlclSendReceiveNoRetry(request, response, max_length); in TlclSendReceive()
[all …]
/external/gptfdisk/
Dsupport.cc54 int response, num; in GetNumber() local
63 num = sscanf(line, "%d", &response); in GetNumber()
65 if ((response < low) || (response > high)) in GetNumber()
68 response = def; in GetNumber()
70 } while ((response < low) || (response > high)); in GetNumber()
73 response = low; in GetNumber()
75 return (response); in GetNumber()
80 char response; in GetYN() local
89 response = toupper(line[0]); in GetYN()
90 } while ((response != 'Y') && (response != 'N')); in GetYN()
[all …]
/external/libbrillo/brillo/http/
Dhttp_utils_unittest.cc28 fake::ServerResponse* response) { in EchoDataHandler() argument
29 response->Reply(status_code::Ok, in EchoDataHandler()
36 fake::ServerResponse* response) { in EchoMethodHandler() argument
37 response->ReplyText( in EchoMethodHandler()
49 auto response = in TEST() local
58 EXPECT_TRUE(response->IsSuccessful()); in TEST()
60 response->GetContentType()); in TEST()
61 EXPECT_EQ(custom_data, response->ExtractData()); in TEST()
73 std::unique_ptr<http::Response> response) { in TEST() argument
74 EXPECT_TRUE(response->IsSuccessful()); in TEST()
[all …]
/external/nanohttpd/nanolets/src/test/java/fi/iki/elonen/router/
DTestNanolets.java111 CloseableHttpResponse response = httpclient.execute(httpget); in doSomeBasicMethodTest() local
112 HttpEntity entity = response.getEntity(); in doSomeBasicMethodTest()
116 response.close(); in doSomeBasicMethodTest()
119 response = httpclient.execute(httppost); in doSomeBasicMethodTest()
120 entity = response.getEntity(); in doSomeBasicMethodTest()
124 response.close(); in doSomeBasicMethodTest()
127 response = httpclient.execute(httpgput); in doSomeBasicMethodTest()
128 entity = response.getEntity(); in doSomeBasicMethodTest()
132 response.close(); in doSomeBasicMethodTest()
135 response = httpclient.execute(httpdelete); in doSomeBasicMethodTest()
[all …]
/external/apache-http/src/org/apache/http/protocol/
DHttpService.java136 HttpResponse response = null; in handleRequest() local
154 response = this.responseFactory.newHttpResponse(ver, in handleRequest()
156 response.setParams( in handleRequest()
157 new DefaultedHttpParams(response.getParams(), this.params)); in handleRequest()
161 this.expectationVerifier.verify(request, response, context); in handleRequest()
163 response = this.responseFactory.newHttpResponse(HttpVersion.HTTP_1_0, in handleRequest()
165 response.setParams( in handleRequest()
166 new DefaultedHttpParams(response.getParams(), this.params)); in handleRequest()
167 handleException(ex, response); in handleRequest()
170 if (response.getStatusLine().getStatusCode() < 200) { in handleRequest()
[all …]
DHttpRequestExecutor.java85 final HttpResponse response) { in canResponseHaveBody() argument
90 int status = response.getStatusLine().getStatusCode(); in canResponseHaveBody()
124 HttpResponse response = doSendRequest(request, conn, context); in execute() local
125 if (response == null) { in execute()
126 response = doReceiveResponse(request, conn, context); in execute()
128 return response; in execute()
203 HttpResponse response = null; in doSendRequest() local
224 response = conn.receiveResponseHeader(); in doSendRequest()
225 if (canResponseHaveBody(request, response)) { in doSendRequest()
226 conn.receiveResponseEntity(response); in doSendRequest()
[all …]
DResponseContent.java66 public void process(final HttpResponse response, final HttpContext context) in process() argument
68 if (response == null) { in process()
71 if (response.containsHeader(HTTP.TRANSFER_ENCODING)) { in process()
74 if (response.containsHeader(HTTP.CONTENT_LEN)) { in process()
77 ProtocolVersion ver = response.getStatusLine().getProtocolVersion(); in process()
78 HttpEntity entity = response.getEntity(); in process()
82 response.addHeader(HTTP.TRANSFER_ENCODING, HTTP.CHUNK_CODING); in process()
84 response.addHeader(HTTP.CONTENT_LEN, Long.toString(entity.getContentLength())); in process()
87 if (entity.getContentType() != null && !response.containsHeader( in process()
89 response.addHeader(entity.getContentType()); in process()
[all …]
/external/nanohttpd/core/src/test/java/fi/iki/elonen/integration/
DGZipIntegrationTest.java60 public Response response; field in GZipIntegrationTest.TestServer
68 return response; in serve()
84 testServer.response = NanoHTTPD.newFixedLengthResponse("This is a test"); in contentEncodingShouldBeAddedToFixedLengthResponses()
87 HttpResponse response = httpclient.execute(request); in contentEncodingShouldBeAddedToFixedLengthResponses() local
88 Header contentEncoding = response.getFirstHeader("content-encoding"); in contentEncodingShouldBeAddedToFixedLengthResponses()
96 …testServer.response = NanoHTTPD.newChunkedResponse(NanoHTTPD.Response.Status.OK, "text/plain", dat… in contentEncodingShouldBeAddedToChunkedResponses()
99 HttpResponse response = httpclient.execute(request); in contentEncodingShouldBeAddedToChunkedResponses() local
100 Header contentEncoding = response.getFirstHeader("content-encoding"); in contentEncodingShouldBeAddedToChunkedResponses()
107 testServer.response = NanoHTTPD.newFixedLengthResponse("This is a test"); in shouldFindCorrectAcceptEncodingAmongMany()
110 HttpResponse response = httpclient.execute(request); in shouldFindCorrectAcceptEncodingAmongMany() local
[all …]
/external/chromium-trace/catapult/telemetry/third_party/web-page-replay/
Dhttpclient.py46 def _InjectScripts(response, injector): argument
58 if type(response) == tuple:
59 logging.warn('tuple response: %s', response)
60 content_type = response.get_header('content-type')
62 text_chunks = response.get_data_as_chunks()
64 text_chunks, 'text/html', injector(response.request_time))
66 response = copy.deepcopy(response)
67 response.set_data_from_chunks(text_chunks)
68 return response
71 def _ScrambleImages(response): argument
[all …]
Dhttpproxy.py107 request, response = StubRequest(host, full_path), None
109 self.server.log_url(request, response)
119 def send_archived_http_response(self, response): argument
122 is_chunked = response.is_chunked()
123 has_content_length = response.get_header('content-length') is not None
124 self.server_version = response.get_header('server', 'WebPageReplay')
127 if response.version == 10:
133 content_length = sum(len(c) for c in response.response_data)
134 response.headers.append(('content-length', str(content_length)))
142 logging.debug('Using delays (ms): %s', response.delays)
[all …]
/external/skia/tools/skiaserve/
DResponse.cpp47 MHD_Response* response = MHD_create_response_from_buffer(strlen(data), in SendOK() local
50 int ret = MHD_queue_response(connection, 200, response); in SendOK()
51 MHD_destroy_response(response); in SendOK()
56 MHD_Response* response = MHD_create_response_from_buffer(strlen(msg), in SendError() local
59 int ret = MHD_queue_response(connection, 500, response); in SendError()
60 MHD_destroy_response(response); in SendError()
66 MHD_Response* response = MHD_create_response_from_buffer(data->size(), in SendData() local
69 MHD_add_response_header(response, "Content-Type", type); in SendData()
72 MHD_add_response_header(response, "Content-Disposition", dispositionString); in SendData()
75 int ret = MHD_queue_response(connection, MHD_HTTP_OK, response); in SendData()
[all …]
/external/nanohttpd/webserver/src/test/java/fi/iki/elonen/
DTestHttpServer.java94 CloseableHttpResponse response = httpclient.execute(httpget); in doTest404() local
95 Assert.assertEquals(404, response.getStatusLine().getStatusCode()); in doTest404()
96 response.close(); in doTest404()
103 CloseableHttpResponse response = httpclient.execute(httpget); in doPlugin() local
104 String string = new String(readContents(response.getEntity()), "UTF-8"); in doPlugin()
106 response.close(); in doPlugin()
109 response = httpclient.execute(httpget); in doPlugin()
110 string = new String(readContents(response.getEntity()), "UTF-8"); in doPlugin()
112 response.close(); in doPlugin()
119 CloseableHttpResponse response = httpclient.execute(httpget); in doSomeBasicTest() local
[all …]
DTestCorsHttpServer.java99 CloseableHttpResponse response = httpclient.execute(httpOption); in doTestOption() local
100 Assert.assertEquals(200, response.getStatusLine().getStatusCode()); in doTestOption()
101 …NotNull("Cors should have added a header: Access-Control-Allow-Origin", response.getLastHeader("Ac… in doTestOption()
102 …"Cors should have added a header: Access-Control-Allow-Origin: *", "*", response.getLastHeader("Ac… in doTestOption()
103 response.close(); in doTestOption()
110 CloseableHttpResponse response = httpclient.execute(httpget); in doSomeBasicTest() local
111 HttpEntity entity = response.getEntity(); in doSomeBasicTest()
114 …NotNull("Cors should have added a header: Access-Control-Allow-Origin", response.getLastHeader("Ac… in doSomeBasicTest()
115 …"Cors should have added a header: Access-Control-Allow-Origin: *", "*", response.getLastHeader("Ac… in doSomeBasicTest()
117 response.close(); in doSomeBasicTest()
[all …]
/external/libbrillo/brillo/dbus/
Ddbus_object_unittest.cc49 void Positive(std::unique_ptr<DBusMethodResponse<double>> response, in Positive()
52 response->Return(x); in Positive()
58 response->ReplyWithError(error.get()); in Positive()
87 std::unique_ptr<DBusMethodResponse<std::string>> response, in TestWithMessageAsync() argument
89 response->Return(message->GetSender()); in TestWithMessageAsync()
143 void ExpectError(dbus::Response* response, const std::string& expected_code) { in ExpectError() argument
144 EXPECT_EQ(dbus::Message::MESSAGE_ERROR, response->GetMessageType()); in ExpectError()
145 EXPECT_EQ(expected_code, response->GetErrorName()); in ExpectError()
160 auto response = testing::CallMethod(*dbus_object_, &method_call); in TEST_F() local
161 dbus::MessageReader reader(response.get()); in TEST_F()
[all …]
Dexported_property_set_unittest.cc135 auto response = testing::CallMethod(p_->dbus_object_, method_call); in AssertMethodReturnsError() local
136 ASSERT_EQ(dbus::Message::MESSAGE_ERROR, response->GetMessageType()); in AssertMethodReturnsError()
231 auto response = testing::CallMethod(p_->dbus_object_, &method_call); in TEST_F() local
232 dbus::MessageReader response_reader(response.get()); in TEST_F()
257 auto response = testing::CallMethod(p_->dbus_object_, &method_call); in TEST_F() local
258 dbus::MessageReader response_reader(response.get()); in TEST_F()
340 auto response = GetPropertyOnInterface(kTestInterface1, kBoolPropName); in TEST_F() local
341 dbus::MessageReader reader(response.get()); in TEST_F()
348 auto response = GetPropertyOnInterface(kTestInterface1, kUint8PropName); in TEST_F() local
349 dbus::MessageReader reader(response.get()); in TEST_F()
[all …]
/external/libmicrohttpd/src/microspdy/
Dapplicationlayer.c36 struct SPDY_Response *response, in spdy_callback_response_done() argument
46 SPDY_destroy_response(response); in spdy_callback_response_done()
227 …response_queue->rrcb(response_queue->rrcb_cls, response_queue->response, request, status, streamop… in spdy_handler_response_queue_result()
398 struct SPDY_Response *response = NULL; in SPDY_build_response() local
410 if(NULL == (response = malloc(sizeof(struct SPDY_Response)))) in SPDY_build_response()
412 memset(response, 0, sizeof(struct SPDY_Response)); in SPDY_build_response()
443 if(0 >= (response->headers_size = SPDYF_name_value_to_stream(all_headers, in SPDY_build_response()
445 &(response->headers)))) in SPDY_build_response()
455 if(NULL == (response->data = malloc(size))) in SPDY_build_response()
457 free(response->headers); in SPDY_build_response()
[all …]
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DDefaultRequestDirectorTest.java66 … HttpResponse response = requestDirector.execute(null, new HttpGet("http://example.com"), null); in shouldGetHttpResponseFromExecute() local
68 assertNotNull(response); in shouldGetHttpResponseFromExecute()
69 assertThat(response.getStatusLine().getStatusCode(), equalTo(200)); in shouldGetHttpResponseFromExecute()
70 …assertThat(Strings.fromStream(response.getEntity().getContent()), equalTo("a happy response body")… in shouldGetHttpResponseFromExecute()
80 HttpResponse response = requestDirector.execute(null, new HttpGet("http://some.uri"), null); in shouldPreferPendingResponses() local
82 assertNotNull(response); in shouldPreferPendingResponses()
83 assertThat(response.getStatusLine().getStatusCode(), equalTo(200)); in shouldPreferPendingResponses()
84 …assertThat(Strings.fromStream(response.getEntity().getContent()), equalTo("a happy response body")… in shouldPreferPendingResponses()
92 HttpResponse response = requestDirector.execute(null, new HttpGet("http://some.uri"), null); in shouldReturnRequestsByRule() local
94 assertNotNull(response); in shouldReturnRequestsByRule()
[all …]
/external/v8/src/debug/
Ddebug.js1269 var response; // Generated response.
1276 response = this.createResponse(request);
1296 response.setOption('inlineRefs', true);
1299 response.setOption('maxStringLength', args.maxStringLength);
1306 %_Call(handler, this, request, response);
1313 if (!response) {
1314 response = this.createResponse();
1316 response.success = false;
1317 response.message = TO_STRING(e);
1322 if (!IS_UNDEFINED(response.running)) {
[all …]
/external/libmicrohttpd/src/examples/
Dpost_example.c245 struct MHD_Response *response) in add_session_cookie() argument
254 MHD_add_response_header (response, in add_session_cookie()
281 struct MHD_Response *response; in serve_simple_form() local
284 response = MHD_create_response_from_buffer (strlen (form), in serve_simple_form()
287 if (NULL == response) in serve_simple_form()
289 add_session_cookie (session, response); in serve_simple_form()
290 MHD_add_response_header (response, in serve_simple_form()
295 response); in serve_simple_form()
296 MHD_destroy_response (response); in serve_simple_form()
317 struct MHD_Response *response; in fill_v1_form() local
[all …]
/external/protobuf/conformance/
Dconformance_ruby.rb40 response = Conformance::ConformanceResponse.new
49 response.parse_error = err.message.encode('utf-8')
50 return response
57 response.parse_error = err.message.encode('utf-8')
58 return response
70 response.protobuf_payload = test_message.to_proto
73 response.json_payload = test_message.to_json
79 response.runtime_error = err.message.encode('utf-8')
82 response
99 response = do_test(request)
[all …]
/external/ppp/pppd/
Dchap_ms.c195 unsigned char *challenge, unsigned char *response, in chapms_verify_response() argument
203 response_len = *response++; in chapms_verify_response()
208 if (!response[MS_CHAP_USENT]) { in chapms_verify_response()
220 if (!response[MS_CHAP_USENT]) in chapms_verify_response()
221 diff = memcmp(&response[MS_CHAP_LANMANRESP], in chapms_verify_response()
225 diff = memcmp(&response[MS_CHAP_NTRESP], &md[MS_CHAP_NTRESP], in chapms_verify_response()
243 unsigned char *challenge, unsigned char *response, in chapms2_verify_response() argument
251 response_len = *response++; in chapms2_verify_response()
256 ChapMS2(challenge, &response[MS_CHAP2_PEER_CHALLENGE], name, in chapms2_verify_response()
280 if (memcmp(&md[MS_CHAP2_NTRESP], &response[MS_CHAP2_NTRESP], in chapms2_verify_response()
[all …]
/external/webrtc/webrtc/base/
Dhttpclient.cc48 bool is_range_response = t.response.hasHeader(HH_CONTENT_RANGE, NULL); in HttpShouldCache()
49 bool has_expires = t.response.hasHeader(HH_EXPIRES, NULL); in HttpShouldCache()
53 has_expires || HttpCodeIsCacheable(t.response.scode); in HttpShouldCache()
61 if (t.response.hasHeader(HH_CACHE_CONTROL, &value)) { in HttpShouldCache()
97 if (t.response.hasHeader(HH_CACHE_CONTROL, &s_temp)) { in HttpGetCacheState()
103 if (!t.response.hasHeader(HH_DATE, &s_temp) in HttpGetCacheState()
118 if (t.response.hasHeader(HH_AGE, &s_temp) in HttpGetCacheState()
133 } else if (t.response.hasHeader(HH_EXPIRES, &s_temp) in HttpGetCacheState()
136 } else if (t.response.hasHeader(HH_LAST_MODIFIED, &s_temp) in HttpGetCacheState()
161 HttpResponseValidatorLevel(const HttpResponseData& response) { in HttpResponseValidatorLevel() argument
[all …]
/external/selinux/libselinux/src/
Dquery_user_context.c16 char response[10]; /* string to hold the user's response */ in context_menu() local
25 if (fgets(response, sizeof(response), stdin) == NULL) in context_menu()
28 choice = strtol(response, NULL, 10); in context_menu()
40 char response[10]; /* The user's response */ in query_user_context() local
51 if (fgets(response, sizeof(response), stdin) == NULL) in query_user_context()
55 if ((response[0] == 'y') || (response[0] == 'Y')) { in query_user_context()
108 char response[10]; /* Used to get yes or no answers from user */ in manual_user_enter_context() local
133 if (fgets(response, sizeof(response), stdin) == NULL in manual_user_enter_context()
134 || (response[0] == 'n') || (response[0] == 'N')) { in manual_user_enter_context()
/external/v8/src/inspector/
Dv8-runtime-agent-impl.cc188 Response response = scope.initialize(); in wrapObject() local
189 if (!response.isSuccess()) { in wrapObject()
190 m_callback->sendFailure(response); in wrapObject()
194 response = scope.injectedScript()->wrapObject( in wrapObject()
197 if (!response.isSuccess()) { in wrapObject()
198 m_callback->sendFailure(response); in wrapObject()
223 Response response = injectedScript->wrapEvaluateResult( in wrapEvaluateResultAsync() local
226 if (response.isSuccess()) { in wrapEvaluateResultAsync()
230 callback->sendFailure(response); in wrapEvaluateResultAsync()
271 Response response = ensureContext(m_inspector, m_session->contextGroupId(), in evaluate() local
[all …]

12345678910>>...48