HomeSort by relevance Sort by last modified time
    Searched refs:Response (Results 201 - 225 of 391) sorted by null

1 2 3 4 5 6 7 891011>>

  /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());
  /system/core/include/utils/
Looper.h 431 struct Response {
469 Vector<Response> mResponses;
  /external/caliper/lib/
jsr311-api-1.1.1.jar 
  /external/chromium-trace/catapult/third_party/gsutil/third_party/apitools/apitools/base/py/
transfer_test.py 16 def assertRangeAndContentRangeCompatible(self, request, response):
23 self.assertIn('content-range', response.info)
24 response_header = response.info['content-range']
91 make_request.return_value = http_wrapper.Response(
119 make_request.return_value = http_wrapper.Response(
153 return http_wrapper.Response(
163 return http_wrapper.Response(
  /external/chromium-trace/catapult/third_party/webapp2/tests/
request_test.py 117 rsp = webapp2.Response()
132 rsp = webapp2.Response()
154 rsp = webapp2.Response()
172 rsp = webapp2.Response()
misc_test.py 85 self.assertEqual(webapp2.Response.http_status_message(404), 'Not Found')
86 self.assertEqual(webapp2.Response.http_status_message(500), 'Internal Server Error')
87 self.assertRaises(KeyError, webapp2.Response.http_status_message, 9999)
  /external/libweave/src/privet/
privet_manager.h 24 class Response;
  /external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
RecordingCallback.java 38 @Override public synchronized void onResponse(Response response) throws IOException {
40 ResponseBody body = response.body();
43 responses.add(new RecordedResponse(response.request(), response, null, buffer.readUtf8(), null));
48 * Returns the recorded response triggered by {@code request}. Throws if the
49 * response isn't enqueued before the timeout.
67 throw new AssertionError("Timed out waiting for response to " + url);
73 throw new AssertionError("Expected no response for " + url);
CallTest.java 324 Response response = client.newCall(request).execute(); local
325 assertEquals(200, response.code());
580 @Override public void onResponse(Response response) throws IOException {
637 @Override public void onResponse(Response response) throws IOException {
638 InputStream bytes = response.body().byteStream();
664 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;
45 Response response = local
47 Headers headers = response.headers();
49 assertEquals(Protocol.SPDY_3, response.protocol());
50 assertEquals(200, response.code());
51 assertEquals("OK", response.message());
73 Response response = local
75 Headers headers = response.headers()
87 Response response = FramedTransport.readNameValueBlock(headerBlock, Protocol.HTTP_2) local
    [all...]
  /external/ppp/pppd/plugins/radius/etc/
dictionary.microsoft 9 ATTRIBUTE MS-CHAP-Response 1 string Microsoft
38 ATTRIBUTE MS-CHAP2-Response 25 string Microsoft
  /external/skia/tools/skiaserve/
skiaserve.cpp 12 #include "Response.h"
21 using namespace Response;
  /external/wpa_supplicant_8/hs20/server/www/
spp.php 28 'uri'=>1, 'response'=>1);
74 if ($data['response'] != $resp) {
75 error_log("Authentication failure - response mismatch");
121 //error_log("spp.php: Response: " . implode($output));
  /frameworks/volley/src/main/java/com/android/volley/
CacheDispatcher.java 27 * Any deliverable response is posted back to the caller via a
118 Response<?> response = request.parseNetworkResponse( local
123 // Completely unexpired cache hit. Just deliver the response.
124 mDelivery.postResponse(request, response);
126 // Soft-expired cache hit. We can deliver the cached response,
132 // Mark the response as intermediate.
133 response.intermediate = true;
135 // Post the intermediate response back to the user and have
137 mDelivery.postResponse(request, response, new Runnable()
    [all...]
  /frameworks/volley/src/test/java/com/android/volley/toolbox/
RequestTest.java 33 Response.ErrorListener.class));
  /device/google/contexthub/util/nanotool/
nanomessage.cpp 68 response.accepted ? "true" : "false");
73 if (buffer.size() != sizeof(Response)) {
78 const Response *source = reinterpret_cast<const Response *>(data);
79 response = *source;
  /external/chromium-trace/catapult/third_party/WebOb/docs/jsonrpc-example-code/
jsonrpc.py 2 from webob import Request, Response
63 return Response(
69 return Response(
133 def __init__(self, message, response):
135 self.response = response
141 def __init__(self, message, code, error, response):
145 self.response = response
148 self.response.request.url
    [all...]
  /external/libbrillo/brillo/http/
http_request_unittest.cc 151 std::string resp_data{"FooBar response body"};
160 [this, &resp_data](RequestID request_id, std::unique_ptr<Response> resp) {
186 std::unique_ptr<Response> resp{new Response{connection_}};
  /external/okhttp/okhttp-apache/src/main/java/com/squareup/okhttp/apache/
OkApacheClient.java 8 import com.squareup.okhttp.Response;
79 private static HttpResponse transformResponse(Response response) throws IOException {
80 int code = response.code();
81 String message = response.message();
84 ResponseBody body = response.body();
88 Headers headers = response.headers();
172 Response okResponse = client.newCall(okRequest).execute();
193 HttpResponse response = execute(host, request, context); local
195 return handler.handleResponse(response);
    [all...]
  /external/okhttp/okhttp-ws-tests/src/test/java/com/squareup/okhttp/ws/
WebSocketRecorder.java 18 import com.squareup.okhttp.Response;
46 @Override public void onOpen(WebSocket webSocket, Response response) {
74 @Override public void onFailure(IOException e, Response response) {
  /system/weaved/buffet/
webserv_client.cc 22 #include <libwebserv/response.h>
37 std::unique_ptr<libwebserv::Response> response)
38 : request_{std::move(request)}, response_{std::move(response)} {}
83 std::unique_ptr<libwebserv::Response> response_;
145 std::unique_ptr<libwebserv::Response> response) {
147 new RequestImpl{std::move(request), std::move(response)}};
  /external/nist-sip/java/gov/nist/javax/sip/
DialogFilter.java 69 import javax.sip.message.Response;
103 * Send back a Request Pending response.
110 SIPResponse sipResponse = sipRequest.createResponse(Response.REQUEST_PENDING);
125 sipStack.getStackLogger().logError("Problem sending error response", ex);
132 * Send a BAD REQUEST response.
141 SIPResponse sipResponse = sipRequest.createResponse(Response.BAD_REQUEST);
155 sipStack.getStackLogger().logError("Problem sending error response", ex);
163 * Send a CALL OR TRANSACTION DOES NOT EXIST response.
173 .createResponse(Response.CALL_OR_TRANSACTION_DOES_NOT_EXIST);
186 sipStack.getStackLogger().logError("Problem sending error response", ex)
652 SIPResponse response = sipRequest local
747 SIPResponse response = sipRequest local
    [all...]
  /external/nanohttpd/websocket/src/main/java/fi/iki/elonen/
NanoWSD.java 79 private final NanoHTTPD.Response handshakeResponse = new NanoHTTPD.Response(NanoHTTPD.Response.Status.SWITCH_PROTOCOL, null, (InputStream) null, 0) {
171 public NanoHTTPD.Response getHandshakeResponse() {
834 public Response serve(final IHTTPSession session) {
838 return newFixedLengthResponse(Response.Status.BAD_REQUEST, NanoHTTPD.MIME_PLAINTEXT,
843 return newFixedLengthResponse(Response.Status.BAD_REQUEST, NanoHTTPD.MIME_PLAINTEXT, "Missing Websocket-Key");
847 Response handshakeResponse = webSocket.getHandshakeResponse();
851 return newFixedLengthResponse(Response.Status.INTERNAL_ERROR, NanoHTTPD.MIME_PLAINTEXT,
    [all...]
  /cts/libs/testserver/src/android/webkit/cts/
TestWebServer.java 79 private static class Response {
86 Response(byte[] responseData, List<Pair<String, String>> responseHeaders,
100 private final Map<String, Response> mResponseMap = new HashMap<String, Response>();
184 mResponseMap.put(requestPath, new Response(
195 * This only gets the URL, you still need to set the response if you intend to access it.
205 * Sets a 404 (not found) response to be returned when a particular request path is passed in.
209 * response.
218 * Sets a response to be returned when a particular request path is passed
222 * @param responseString The response body that will be returned
407 Response response = null; local
450 HttpResponse response = new BasicHttpResponse(HttpVersion.HTTP_1_0, status, null); local
592 HttpResponse response = mServer.getResponse(request); local
    [all...]

Completed in 951 milliseconds

1 2 3 4 5 6 7 891011>>