/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/ |
Call.java | 33 * canceled. As this object represents a single request/response pair (stream), 56 * Invokes the request immediately, and blocks until the response can be 59 * <p>The caller may read the response body with the response's 60 * {@link Response#body} method. To facilitate connection recycling, callers 61 * should always {@link ResponseBody#close() close the response body}. 63 * <p>Note that transport-layer success (receiving a HTTP response code, 65 * {@code response} may still indicate an unhappy HTTP response code like 404 75 public Response execute() throws IOException 173 Response response = getResponseWithInterceptorChain(forWebSocket); local 323 Response response = engine.getResponse(); local [all...] |
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/guide/ |
PostExample.java | 7 import com.squareup.okhttp.Response; 22 Response response = client.newCall(request).execute(); local 23 return response.body().string(); 41 String response = example.post("http://www.roundsapp.com/post", json); local 42 System.out.println(response);
|
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/ |
AsynchronousGet.java | 22 import com.squareup.okhttp.Response; 38 @Override public void onResponse(Response response) throws IOException { 39 if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); 41 Headers responseHeaders = response.headers(); 46 System.out.println(response.body().string());
|
CancelCall.java | 21 import com.squareup.okhttp.Response; 50 Response response = call.execute(); local 52 (System.nanoTime() - startNanos) / 1e9f, response);
|
ParseResponseWithGson.java | 21 import com.squareup.okhttp.Response; 33 Response response = client.newCall(request).execute(); local 34 if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); 36 Gist gist = gson.fromJson(response.body().charStream(), Gist.class);
|
PostMultipart.java | 23 import com.squareup.okhttp.Response; 53 Response response = client.newCall(request).execute(); local 54 if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); 56 System.out.println(response.body().string());
|
PostStreaming.java | 22 import com.squareup.okhttp.Response; 60 Response response = client.newCall(request).execute(); local 61 if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); 63 System.out.println(response.body().string());
|
RequestBodyCompression.java | 24 import com.squareup.okhttp.Response; 57 Response response = client.newCall(request).execute(); local 58 if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); 60 System.out.println(response.body().string()); 69 @Override public Response intercept(Chain chain) throws IOException {
|
/external/okhttp/samples/simple-client/src/main/java/com/squareup/okhttp/sample/ |
OkHttpContributors.java | 7 import com.squareup.okhttp.Response; 34 // Execute the request and retrieve the response. 35 Response response = client.newCall(request).execute(); local 37 // Deserialize HTTP response to concrete type. 38 ResponseBody body = response.body();
|
/external/tensorflow/tensorflow/core/distributed_runtime/rpc/eager/ |
grpc_eager_service_impl.h | 47 void method##Handler(EagerCall<method##Request, method##Response>* call) { \ 50 ToGrpcStatus(local_impl_.method(&call->request, &call->response))); \ 54 method##Response>:: \
|
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellLevel2CommandsLib/ |
Mv.c | 350 @param[out] Resp A pointer to response from question. Pass back on looped calling
434 @param[out] Resp A pointer to response from question. Pass back on looped calling.
510 @param[out] Resp pointer to response from question. Pass back on looped calling
535 VOID *Response;
545 Response = *Resp;
643 if (Response == NULL) {
644 ShellPromptForResponseHii(ShellPromptResponseTypeYesNoAllCancel, STRING_TOKEN (STR_GEN_DEST_EXIST_OVR), gShellLevel2HiiHandle, &Response);
646 switch (*(SHELL_PROMPT_RESPONSE*)Response) {
648 FreePool(Response);
649 Response = NULL; [all...] |
/external/nanohttpd/core/src/test/java/fi/iki/elonen/integration/ |
GZipIntegrationTest.java | 60 public Response response; field in class:GZipIntegrationTest.TestServer 67 public Response serve(IHTTPSession session) { 68 return response; 72 protected boolean useGzipWhenAccepted(Response r) { 84 testServer.response = NanoHTTPD.newFixedLengthResponse("This is a test"); 87 HttpResponse response = httpclient.execute(request); local 88 Header contentEncoding = response.getFirstHeader("content-encoding"); 96 testServer.response = NanoHTTPD.newChunkedResponse(NanoHTTPD.Response.Status.OK, "text/plain", data) 99 HttpResponse response = httpclient.execute(request); local 110 HttpResponse response = httpclient.execute(request); local 121 HttpResponse response = httpclient.execute(request); local 131 HttpResponse response = new DecompressingHttpClient(httpclient).execute(request); local 141 HttpResponse response = new DecompressingHttpClient(httpclient).execute(request); local 149 HttpResponse response = httpclient.execute(request); local 161 HttpResponse response = httpclient.execute(request); local [all...] |
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
RecordedResponse.java | 30 * A received response or failure recorded by the response recorder. 34 public final Response response; field in class:RecordedResponse 39 public RecordedResponse(Request request, Response response, WebSocket webSocket, String body, 42 this.response = response; 64 assertEquals(expectedCode, response.code()); 69 assertTrue(response.isSuccessful()) [all...] |
/external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/internal/huc/ |
URLEncodingTest.java | 22 import com.squareup.okhttp.Response; 134 public Response get(Request request) throws IOException { 140 public CacheRequest put(Response response) throws IOException { 150 public void update(Response cached, Response network) throws IOException {
|
/external/volley/src/test/java/com/android/volley/toolbox/ |
JsonRequestCharsetTest.java | 24 import com.android.volley.Response; 58 Response<JSONObject> objectResponse = objectRequest.parseNetworkResponse(network); 72 Response<JSONArray> arrayResponse = arrayRequest.parseNetworkResponse(network); 87 Response<JSONObject> objectResponse = objectRequest.parseNetworkResponse(network); 102 Response<JSONArray> arrayResponse = arrayRequest.parseNetworkResponse(network);
|
/external/syzkaller/vendor/golang.org/x/net/context/ctxhttp/ |
ctxhttp.go | 20 // an HTTP response. 26 func Do(ctx context.Context, client *http.Client, req *http.Request) (*http.Response, error) { 44 func Get(ctx context.Context, client *http.Client, url string) (*http.Response, error) { 53 func Head(ctx context.Context, client *http.Client, url string) (*http.Response, error) { 62 func Post(ctx context.Context, client *http.Client, url string, bodyType string, body io.Reader) (*http.Response, error) { 72 func PostForm(ctx context.Context, client *http.Client, url string, data url.Values) (*http.Response, error) {
|
/external/volley/src/test/java/com/android/volley/ |
CacheDispatcherTest.java | 79 verify(delivery, never()).postResponse(any(Request.class), any(Response.class)); 81 .postResponse(any(Request.class), any(Response.class), any(Runnable.class)); 94 // A cache miss does not post a response and puts the request on the network queue. 103 // A non-expired cache hit posts a response and does not queue to the network. 109 verify(mDelivery).postResponse(any(Request.class), any(Response.class)); 113 // A soft-expired cache hit posts a response and queues to the network. 123 verify(mDelivery).postResponse(any(Request.class), any(Response.class), runnable.capture()); 132 // An expired cache hit does not post a response and queues to the network. 174 // Another unusable response, third request should now be added. 195 verify(mDelivery).postResponse(any(Request.class), any(Response.class), runnable.capture()) [all...] |
/external/nanohttpd/nanolets/src/main/java/fi/iki/elonen/router/ |
RouterNanoHTTPD.java | 54 import fi.iki.elonen.NanoHTTPD.Response.IStatus; 55 import fi.iki.elonen.NanoHTTPD.Response.Status; 70 public Response get(UriResource uriResource, Map<String, String> urlParams, IHTTPSession session); 72 public Response put(UriResource uriResource, Map<String, String> urlParams, IHTTPSession session); 74 public Response post(UriResource uriResource, Map<String, String> urlParams, IHTTPSession session); 76 public Response delete(UriResource uriResource, Map<String, String> urlParams, IHTTPSession session); 78 public Response other(String method, UriResource uriResource, Map<String, String> urlParams, IHTTPSession session); 93 public Response get(UriResource uriResource, Map<String, String> urlParams, IHTTPSession session) { 97 public Response post(UriResource uriResource, Map<String, String> urlParams, IHTTPSession session) { 101 public Response put(UriResource uriResource, Map<String, String> urlParams, IHTTPSession session) [all...] |
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/ |
CacheStrategy.java | 6 import com.squareup.okhttp.Response; 25 * Given a request and cached response, this figures out whether to use the 30 * response (if the cached data is potentially stale). 36 /** The cached response to return or validate; or null if this call doesn't use a cache. */ 37 public final Response cacheResponse; 39 private CacheStrategy(Request networkRequest, Response cacheResponse) { 45 * Returns true if {@code response} can be stored to later serve another 48 public static boolean isCacheable(Response response, Request request) { 49 // Always go to network for uncacheable response codes (RFC 7231 section 6.1) [all...] |
/external/okhttp/okhttp-ws-tests/src/main/java/com/squareup/okhttp/ws/ |
AutobahnTester.java | 21 import com.squareup.okhttp.Response; 78 @Override public void onOpen(WebSocket webSocket, Response response) { 86 final RequestBody response; 88 response = RequestBody.create(TEXT, message.string()); 91 response = RequestBody.create(BINARY, source.readByteString()); 97 webSocket.sendMessage(response); 113 @Override public void onFailure(IOException e, Response response) { 136 @Override public void onOpen(WebSocket webSocket, Response response) [all...] |
/external/okhttp/okhttp-ws-tests/src/test/java/com/squareup/okhttp/ws/ |
WebSocketCallTest.java | 21 import com.squareup.okhttp.Response; 73 @Override public void onOpen(final WebSocket webSocket, Response response) { 94 listener.assertFailure(ProtocolException.class, "Expected HTTP 101 response but was '200 OK'"); 101 "Expected HTTP 101 response but was '404 Not Found'"); 211 final AtomicReference<Response> responseRef = new AtomicReference<>(); 216 @Override public void onOpen(WebSocket webSocket, Response response) { 218 responseRef.set(response); 234 @Override public void onFailure(IOException e, Response response) [all...] |
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/http/ |
CacheStrategy.java | 7 import com.android.okhttp.Response; 26 * Given a request and cached response, this figures out whether to use the 31 * response (if the cached data is potentially stale). 38 /** The cached response to return or validate; or null if this call doesn't use a cache. */ 39 public final Response cacheResponse; 41 private CacheStrategy(Request networkRequest, Response cacheResponse) { 47 * Returns true if {@code response} can be stored to later serve another 50 public static boolean isCacheable(Response response, Request request) { 51 // Always go to network for uncacheable response codes (RFC 7231 section 6.1) [all...] |
/external/nanohttpd/markdown-plugin/src/main/java/fi/iki/elonen/ |
MarkdownWebServerPlugin.java | 36 import static fi.iki.elonen.NanoHTTPD.Response.Status.OK; 110 public NanoHTTPD.Response serveFile(String uri, Map<String, String> headers, NanoHTTPD.IHTTPSession session, File file, String mimeType) { 119 return markdownSource == null ? null : new NanoHTTPD.Response(OK, NanoHTTPD.MIME_HTML, new ByteArrayInputStream(bytes), bytes.length);
|
/external/okhttp/android/src/main/java/com/android/okhttp/internalandroidapi/ |
AndroidResponseCacheAdapter.java | 22 import com.squareup.okhttp.Response; 71 Response okResponse = okHttpCache.internalCache.get(okRequest); 84 Response okResponse = JavaApiConverter.createOkResponseForCachePut(uri, urlConnection); 128 * supply a response or validate a locally cached response. 136 * Returns the number of HTTP requests whose response was provided by the
|
/external/okhttp/repackaged/android/src/main/java/com/android/okhttp/internalandroidapi/ |
AndroidResponseCacheAdapter.java | 23 import com.android.okhttp.Response; 73 Response okResponse = okHttpCache.internalCache.get(okRequest); 86 Response okResponse = JavaApiConverter.createOkResponseForCachePut(uri, urlConnection); 130 * supply a response or validate a locally cached response. 138 * Returns the number of HTTP requests whose response was provided by the
|