/external/libbrillo/brillo/http/ |
http_connection.h | 22 class Response; 34 // http::Request and http::Response classes use it for communication. 35 // Effectively this class is the interface for the request/response objects to 39 // response object until all the data is sent to the server and the response 52 // response. 60 // If needed, this function can be called to customize where the response 64 // to receive the response data. The method will block until the whole 65 // response message is received, or if an error occur in which case the 68 // Send the request asynchronously and invoke the callback with the response [all...] |
http_connection_fake.cc | 86 std::unique_ptr<Response> response{new Response{shared_from_this()}}; 87 success_callback.Run(1, std::move(response));
|
/external/libmojo/mojo/android/javatests/src/org/chromium/mojo/bindings/ |
InterfacesTest.java | 16 import org.chromium.mojo.bindings.test.mojom.sample.Response; 120 Response response = new Response(); local 121 response.x = 42; 122 callback.call(response, "Hello"); 149 * Implementation of DoStuffResponse that keeps track of if the response is called. 159 public void call(Response response, String string) { 275 DoStuffResponseImpl response = new DoStuffResponseImpl() local [all...] |
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
RecordingCallback.java | 37 @Override public synchronized void onResponse(Response response) throws IOException { 38 String body = response.body().string(); 39 responses.add(new RecordedResponse(response.request(), response, null, body, null)); 44 * Returns the recorded response triggered by {@code request}. Throws if the 45 * response isn't enqueued before the timeout. 63 throw new AssertionError("Timed out waiting for response to " + url); 69 throw new AssertionError("Expected no response for " + url);
|
CallTest.java | 383 Response response = client.newCall(request).execute(); local 384 assertEquals(200, response.code()); 574 Response response = call.execute(); local 575 response.body().close(); 655 @Override public void onResponse(Response response) throws IOException { 712 @Override public void onResponse(Response response) throws IOException 739 Response response = client.newCall(request).execute(); local [all...] |
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/ |
HeadersTest.java | 21 import com.squareup.okhttp.Response; 44 Response response = Http2xStream.readSpdy3HeadersList(headerBlock).request(request).build(); local 45 Headers headers = response.headers(); 47 assertEquals(Protocol.SPDY_3, response.protocol()); 48 assertEquals(200, response.code()); 49 assertEquals("OK", response.message()); 68 Response response = Http2xStream.readSpdy3HeadersList(headerBlock).request(request).build(); local 69 Headers headers = response.headers() 79 Response response = Http2xStream.readHttp2HeadersList(headerBlock).request(request).build(); local [all...] |
/external/okhttp/okhttp-ws/src/main/java/com/squareup/okhttp/ws/ |
WebSocketCall.java | 22 import com.squareup.okhttp.Response; 88 * <p>This client will later call back {@code responseCallback} with either an HTTP response or a 96 @Override public void onResponse(Response response) throws IOException { 98 createWebSocket(response, listener); 100 listener.onFailure(e, response); 117 private void createWebSocket(Response response, WebSocketListener listener) throws IOException { 118 if (response.code() != 101) { 119 Util.closeQuietly(response.body()) [all...] |
/external/skia/tools/skiaserve/ |
Response.cpp | 8 #include "Response.h" 42 namespace Response { 43 // SendOK just sends an empty response with a 200 OK status code. 47 MHD_Response* response = MHD_create_response_from_buffer(strlen(data), local 50 int ret = MHD_queue_response(connection, 200, response); 51 MHD_destroy_response(response); 56 MHD_Response* response = MHD_create_response_from_buffer(strlen(msg), local 59 int ret = MHD_queue_response(connection, 500, response); 60 MHD_destroy_response(response); 66 MHD_Response* response = MHD_create_response_from_buffer(data->size() local 83 MHD_Response* response = MHD_create_response_from_buffer( local [all...] |
/external/skia/tools/skiaserve/urlhandlers/ |
CmdHandler.cpp | 12 #include "../Response.h" 14 using namespace Response;
|
PostHandler.cpp | 12 #include "../Response.h" 14 using namespace Response;
|
/system/core/trusty/nvram/ |
nvram_wipe.cpp | 37 nvram::Response response; local 41 nvram_proxy.Execute(request, &response); 43 response.payload.get<nvram::COMMAND_GET_INFO>(); 44 if (response.result == NV_RESULT_SUCCESS) { 51 nvram_proxy.Execute(request, &response); 54 nvram_proxy.Execute(request, &response); 59 if (response.result != NV_RESULT_SUCCESS) { 60 fprintf(stderr, "Command execution failure: %u\n", response.result);
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/ |
Http1xStream.java | 21 import com.squareup.okhttp.Response; 50 * <li>{@link #readResponse Read response headers}. 51 * <li>Open a source to read the response body. Either {@link 57 * the request body. Exchanges that do not have a response body can call {@link 126 @Override public Response.Builder readResponseHeaders() throws IOException { 130 @Override public ResponseBody openResponseBody(Response response) throws IOException { 131 Source source = getTransferStream(response); 132 return new RealResponseBody(response.headers(), Okio.buffer(source)); 135 private Source getTransferStream(Response response) throws IOException [all...] |
Http2xStream.java | 22 import com.squareup.okhttp.Response; 148 @Override public Response.Builder readResponseHeaders() throws IOException { 217 /** Returns headers for a name value block containing a SPDY response. */ 218 public static Response.Builder readSpdy3HeadersList(List<Header> headerBlock) throws IOException { 245 return new Response.Builder() 252 /** Returns headers for a name value block containing an HTTP/2 response. */ 253 public static Response.Builder readHttp2HeadersList(List<Header> headerBlock) throws IOException { 270 return new Response.Builder() 277 @Override public ResponseBody openResponseBody(Response response) throws IOException [all...] |
/system/tpm/tpm_manager/client/ |
tpm_nvram_dbus_proxy_test.cc | 62 auto response = dbus::Response::CreateEmpty(); 63 dbus::MessageWriter writer(response.get()); 67 response_callback.Run(response.release()); 96 auto response = dbus::Response::CreateEmpty(); 97 dbus::MessageWriter writer(response.get()); 101 response_callback.Run(response.release()); 131 auto response = dbus::Response::CreateEmpty() [all...] |
/system/tpm/attestation/client/ |
dbus_proxy_test.cc | 63 auto response = dbus::Response::CreateEmpty(); 64 dbus::MessageWriter writer(response.get()); 70 response_callback.Run(response.release()); 105 auto response = dbus::Response::CreateEmpty(); 106 dbus::MessageWriter writer(response.get()); 116 response_callback.Run(response.release()); 150 auto response = dbus::Response::CreateEmpty() [all...] |
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/tls/ |
CertificatePinnerChainValidationTest.java | 22 import com.squareup.okhttp.Response; 83 Response response1 = call1.execute(); 93 Response response2 = call2.execute(); 138 Response response1 = call1.execute(); 148 Response response2 = call2.execute();
|
/external/libchrome/dbus/ |
message.cc | 395 // Response implementation. 398 Response::Response() : Message() { 401 std::unique_ptr<Response> Response::FromRawMessage(DBusMessage* raw_message) { 405 std::unique_ptr<Response> response(new Response); 406 response->Init(raw_message); 407 return response; [all...] |
object_proxy.cc | 49 void EmptyResponseCallbackBody(Response* /*response*/) { 72 std::unique_ptr<Response> ObjectProxy::CallMethodAndBlockWithErrorDetails( 81 return std::unique_ptr<Response>(); 102 return std::unique_ptr<Response>(); 108 return Response::FromRawMessage(response_message); 111 std::unique_ptr<Response> ObjectProxy::CallMethodAndBlock( 168 // Wait for the response in the D-Bus thread. 326 // The response is not received. 341 std::unique_ptr<Response> response [all...] |
/external/nist-sip/java/gov/nist/javax/sip/message/ |
MessageFactoryImpl.java | 257 // Standard Response Creation methods 260 * Creates a new Response message of type specified by the statusCode 286 public Response createResponse(int statusCode, CallIdHeader callId, 293 throw new NullPointerException(" unable to create the response"); 317 * Creates a new Response message of type specified by the statusCode 343 public Response createResponse(int statusCode, CallIdHeader callId, 369 * Creates a new Response message of type specified by the statusCode 371 * Response does not contain a body. 390 public Response createResponse(int statusCode, CallIdHeader callId, 397 + ", unable to create the response", 0) [all...] |
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/ |
UfsPassThruHci.c | 208 Dump QUERY RESPONSE UPIU result for debugging.
220 DEBUG ((EFI_D_VERBOSE, "Query Response with Parameter Not Readable\n"));
223 DEBUG ((EFI_D_VERBOSE, "Query Response with Parameter Not Writeable\n"));
226 DEBUG ((EFI_D_VERBOSE, "Query Response with Parameter Already Written\n"));
229 DEBUG ((EFI_D_VERBOSE, "Query Response with Invalid Length\n"));
232 DEBUG ((EFI_D_VERBOSE, "Query Response with Invalid Value\n"));
235 DEBUG ((EFI_D_VERBOSE, "Query Response with Invalid Selector\n"));
238 DEBUG ((EFI_D_VERBOSE, "Query Response with Invalid Index\n"));
241 DEBUG ((EFI_D_VERBOSE, "Query Response with Invalid Idn\n"));
244 DEBUG ((EFI_D_VERBOSE, "Query Response with Invalid Opcode\n")); [all...] |
/external/nanohttpd/core/src/test/java/fi/iki/elonen/ |
HttpServerTest.java | 64 public Response response = newFixedLengthResponse(""); field in class:HttpServerTest.TestServer 99 public Response serve(IHTTPSession session) { 113 return this.response;
|
/external/okhttp/samples/crawler/src/main/java/com/squareup/okhttp/sample/ |
Crawler.java | 22 import com.squareup.okhttp.Response; 92 Response response = client.newCall(request).execute(); local 93 String responseSource = response.networkResponse() != null 94 ? ("(network: " + response.networkResponse().code() + " over " + response.protocol() + ")") 96 int responseCode = response.code(); 100 String contentType = response.header("Content-Type"); 102 response.body().close(); 106 Document document = Jsoup.parse(response.body().string(), url.toString()) [all...] |
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/ |
CustomTrust.java | 22 import com.squareup.okhttp.Response; 50 Response response = client.newCall(request).execute(); local 51 if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); 53 Headers responseHeaders = response.headers(); 58 System.out.println(response.body().string());
|
/prebuilts/go/darwin-x86/src/net/http/ |
client.go | 67 // method returns both the previous Response (with its Body 71 // then the most recent response is returned with its body 82 // of every inbound Response. The Jar is consulted for every 91 // redirects, and reading the response body. The timer remains 93 // interrupt reading of the Response.Body. 113 // single HTTP transaction, obtaining the Response for a given Request. 119 // a Response for the provided Request. 121 // RoundTrip should not attempt to interpret the response. In 123 // a response, regardless of the response's HTTP status code [all...] |
/prebuilts/go/linux-x86/src/net/http/ |
client.go | 67 // method returns both the previous Response (with its Body 71 // then the most recent response is returned with its body 82 // of every inbound Response. The Jar is consulted for every 91 // redirects, and reading the response body. The timer remains 93 // interrupt reading of the Response.Body. 113 // single HTTP transaction, obtaining the Response for a given Request. 119 // a Response for the provided Request. 121 // RoundTrip should not attempt to interpret the response. In 123 // a response, regardless of the response's HTTP status code [all...] |