/external/nanohttpd/core/src/test/java/fi/iki/elonen/ |
HttpDeleteRequestTest.java | 45 this.testServer.response = NanoHTTPD.newFixedLengthResponse(NanoHTTPD.Response.Status.NO_CONTENT, NanoHTTPD.MIME_HTML, ""); 63 this.testServer.response = NanoHTTPD.newChunkedResponse(NanoHTTPD.Response.Status.NO_CONTENT, NanoHTTPD.MIME_HTML, (InputStream) null); 81 this.testServer.response = NanoHTTPD.newFixedLengthResponse(NanoHTTPD.Response.Status.NO_CONTENT, NanoHTTPD.MIME_HTML, (String) null); 99 this.testServer.response = NanoHTTPD.newFixedLengthResponse(NanoHTTPD.Response.Status.ACCEPTED, "application/xml", "<body />"); 118 this.testServer.response = NanoHTTPD.newFixedLengthResponse(NanoHTTPD.Response.Status.OK, "application/xml", "<body />") [all...] |
/external/nanohttpd/websocket/src/test/java/fi/iki/elonen/ |
WebSocketResponseHandlerTest.java | 53 import fi.iki.elonen.NanoHTTPD.Response; 121 Response handshakeResponse = this.nanoWebSocketServer.serve(this.session); 128 Response handshakeResponse = this.nanoWebSocketServer.serve(this.session); 140 Response handshakeResponse = this.nanoWebSocketServer.serve(this.session); 143 assertEquals(Response.Status.BAD_REQUEST, handshakeResponse.getStatus()); 149 Response handshakeResponse = this.nanoWebSocketServer.serve(this.session); 156 Response handshakeResponse = this.nanoWebSocketServer.serve(this.session); 164 Response handshakeResponse = this.nanoWebSocketServer.serve(this.session); 167 assertEquals(Response.Status.BAD_REQUEST, handshakeResponse.getStatus());
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
InterceptorTest.java | 60 final Response interceptorResponse = new Response.Builder() 69 @Override public Response intercept(Chain chain) throws IOException { 74 Response response = client.newCall(request).execute(); local 75 assertSame(interceptorResponse, response); 82 @Override public Response intercept(Chain chain) throws IOException { 83 return new Response.Builder() 112 @Override public Response intercept(Chain chain) throws IOException { 136 @Override public Response intercept(Chain chain) throws IOException 208 Response response = client.newCall(request).execute(); local 276 Response response = client.newCall(request).execute(); local 320 Response response = client.newCall(request).execute(); local 374 Response response = client.newCall(request).execute(); local 497 Response response = client.newCall(request).execute(); local [all...] |
/external/libbrillo/brillo/dbus/ |
utils.h | 20 // A helper function to create a D-Bus error response object as unique_ptr<>. 21 BRILLO_EXPORT std::unique_ptr<dbus::Response> CreateDBusErrorResponse( 26 // Create a D-Bus error response object from brillo::Error. If the last 31 BRILLO_EXPORT std::unique_ptr<dbus::Response> GetDBusError(
|
/external/nist-sip/java/javax/sip/ |
SipProvider.java | 6 import javax.sip.message.Response; 49 void sendResponse(Response response) throws SipException;
|
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/guide/ |
GetExample.java | 5 import com.squareup.okhttp.Response; 16 Response response = client.newCall(request).execute(); local 17 return response.body().string(); 22 String response = example.run("https://raw.github.com/square/okhttp/master/README.md"); local 23 System.out.println(response);
|
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/ |
AccessHeaders.java | 20 import com.squareup.okhttp.Response; 34 Response response = client.newCall(request).execute(); local 35 if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); 37 System.out.println("Server: " + response.header("Server")); 38 System.out.println("Date: " + response.header("Date")); 39 System.out.println("Vary: " + response.headers("Vary"));
|
CertificatePinning.java | 21 import com.squareup.okhttp.Response; 44 Response response = client.newCall(request).execute(); local 45 if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); 47 for (Certificate certificate : response.handshake().peerCertificates()) {
|
ConfigureTimeouts.java | 20 import com.squareup.okhttp.Response; 38 Response response = client.newCall(request).execute(); local 39 System.out.println("Response completed: " + response);
|
PostFile.java | 22 import com.squareup.okhttp.Response; 40 Response response = client.newCall(request).execute(); local 41 if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); 43 System.out.println(response.body().string());
|
PostForm.java | 22 import com.squareup.okhttp.Response; 37 Response response = client.newCall(request).execute(); local 38 if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); 40 System.out.println(response.body().string());
|
PostString.java | 22 import com.squareup.okhttp.Response; 45 Response response = client.newCall(request).execute(); local 46 if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); 48 System.out.println(response.body().string());
|
SynchronousGet.java | 21 import com.squareup.okhttp.Response; 32 Response response = client.newCall(request).execute(); local 33 if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); 35 Headers responseHeaders = response.headers(); 40 System.out.println(response.body().string());
|
CacheResponse.java | 21 import com.squareup.okhttp.Response; 41 Response response1 = client.newCall(request).execute(); 45 System.out.println("Response 1 response: " + response1); 46 System.out.println("Response 1 cache response: " + response1.cacheResponse()); 47 System.out.println("Response 1 network response: " + response1.networkResponse()); 49 Response response2 = client.newCall(request).execute(); 53 System.out.println("Response 2 response: " + response2) [all...] |
/frameworks/volley/src/main/java/com/android/volley/toolbox/ |
ClearCacheRequest.java | 22 import com.android.volley.Response; 63 protected Response<Object> parseNetworkResponse(NetworkResponse response) { 68 protected void deliverResponse(Object response) {
|
/external/chromium-trace/catapult/third_party/webapp2/tests/ |
response_test.py | 27 rsp = webapp2.Response() 33 rsp = webapp2.Response() 39 rsp = webapp2.Response() 45 rsp = webapp2.Response() 51 rsp = webapp2.Response() 57 rsp = webapp2.Response() 64 rsp = webapp2.Response() 72 rsp = webapp2.Response() 106 rsp = webapp2.Response() 128 rsp = webapp2.Response(body='Page not found!', status=404 [all...] |
extras_local_app_test.py | 11 return webapp2.Response('Hello, World!')
|
/external/chromium-trace/catapult/third_party/webapp2/tests/resources/ |
handlers.py | 6 self.response.out.write('I am a laaazy view.') 11 self.response.out.write('I am a custom method.') 14 def handle_exception(request, response, exception): 15 return webapp2.Response(body='Hello, custom response world!')
|
/external/libchrome/dbus/ |
exported_object.h | 26 class Response; 41 // Called to send a response from an exported method. |response| is the 42 // response message. Callers should pass NULL in the event of an error that 43 // prevents the sending of a response. 44 typedef base::Callback<void (scoped_ptr<Response> response)> ResponseSender; 47 // message. |sender| is the callback that's used to send a response. 144 // Callback invoked by service provider to send a response to a method call. 149 scoped_ptr<Response> response) [all...] |
/external/libweave/include/weave/provider/test/ |
mock_http_client.h | 19 class MockHttpClientResponse : public HttpClient::Response {
|
/external/nanohttpd/webserver/src/main/java/fi/iki/elonen/ |
WebServerPlugin.java | 50 NanoHTTPD.Response serveFile(String uri, Map<String, String> headers, IHTTPSession session, File file, String mimeType);
|
SimpleWebServer.java | 54 import fi.iki.elonen.NanoHTTPD.Response.IStatus; 266 protected Response getForbiddenResponse(String s) { 267 return newFixedLengthResponse(Response.Status.FORBIDDEN, NanoHTTPD.MIME_PLAINTEXT, "FORBIDDEN: " + s); 270 protected Response getInternalErrorResponse(String s) { 271 return newFixedLengthResponse(Response.Status.INTERNAL_ERROR, NanoHTTPD.MIME_PLAINTEXT, "INTERNAL ERROR: " + s); 274 protected Response getNotFoundResponse() { 275 return newFixedLengthResponse(Response.Status.NOT_FOUND, NanoHTTPD.MIME_PLAINTEXT, "Error 404, file not found."); 353 public static Response newFixedLengthResponse(IStatus status, String mimeType, String message) { 354 Response response = NanoHTTPD.newFixedLengthResponse(status, mimeType, message) local 424 Response response = null; local [all...] |
/external/skia/tools/skiaserve/ |
Response.h | 15 namespace Response { 16 // SendOK just sends an empty response with a 200 OK status code.
|
/frameworks/volley/src/test/java/com/android/volley/mock/ |
MockRequest.java | 21 import com.android.volley.Response; 22 import com.android.volley.Response.ErrorListener; 64 protected void deliverResponse(byte[] response) { 96 protected Response<byte[]> parseNetworkResponse(NetworkResponse response) { 98 return Response.success(response.data, CacheTestUtils.makeRandomCacheEntry(response.data));
|
/system/webservd/libwebserv/ |
request_handler_callback.h | 35 std::unique_ptr<Response> response) override;
|