| /external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/ |
| D | UrlConnectionCacheTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 38 import java.net.URL; 86 private final OkUrlFactory client = new OkUrlFactory(new OkHttpClient()); field in UrlConnectionCacheTest 93 client.client().setCache(cache); in setUp() 104 assertSame(cache, client.client().getCache()); in responseCacheAccessWithOkHttpMember() 109 * http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html#sec13.4 113 // http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html in responseCachingByResponseCode() 168 .addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in assertCached() 172 .addHeader("WWW-Authenticate: challenge"); in assertCached() 174 response.addHeader("Proxy-Authenticate: Basic realm=\"protected area\""); in assertCached() [all …]
|
| D | OkUrlFactoryTest.java | 13 import java.net.URL; 40 OkHttpClient client = new OkHttpClient(); in setUp() local 42 client.setCache(cache); in setUp() 43 factory = new OkUrlFactory(client); in setUp() 51 * Response code 407 should only come from proxy servers. Android's client 68 HttpURLConnection connection = factory.open(server.getUrl("/")); in networkResponseSourceHeader() local 69 assertResponseHeader(connection, "NETWORK 200"); in networkResponseSourceHeader() 70 assertResponseBody(connection, "Isla Sorna"); in networkResponseSourceHeader() 76 HttpURLConnection connection = factory.open(server.getUrl("/")); in networkFailureResponseSourceHeader() local 77 assertResponseHeader(connection, "NETWORK 404"); in networkFailureResponseSourceHeader() [all …]
|
| /external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
| D | URLConnectionTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 49 import java.net.URL; 109 // Android-added: Use TLS 1.3 and 1.2 for testing 124 private OkUrlFactory client; field in URLConnectionTest 125 private HttpURLConnection connection; field in URLConnectionTest 130 client = new OkUrlFactory(new OkHttpClient()); in setUp() 150 connection = client.open(server.getUrl("/")); in requestHeaders() 151 connection.addRequestProperty("D", "e"); in requestHeaders() 152 connection.addRequestProperty("D", "f"); in requestHeaders() 153 assertEquals("f", connection.getRequestProperty("D")); in requestHeaders() [all …]
|
| D | CallTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 94 // Android-added: Use TLS 1.3 and 1.2 for testing 109 private OkHttpClient client = new OkHttpClient(); field in CallTest 126 server.enqueue(new MockResponse().setBody("abc").addHeader("Content-Type: text/plain")); in get() 129 .url(server.url("/")) in get() 130 .header("User-Agent", "SyncApiTest") in get() 136 .assertHeader("Content-Type", "text/plain") in get() 141 assertEquals("SyncApiTest", recordedRequest.getHeader("User-Agent")); in get() 143 assertNull(recordedRequest.getHeader("Content-Length")); in get() 149 HttpUrl httpUrl = server.url("/"); in buildRequestUsingHttpUrl() [all …]
|
| /external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/ |
| D | CacheAdapterTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 32 import java.net.URL; 52 * A white-box test for {@link CacheAdapter}. See also: 54 * <li>{@link ResponseCacheTest} for black-box tests that check that {@link ResponseCache} 64 private OkHttpClient client; field in CacheAdapterTest 65 private HttpURLConnection connection; field in CacheAdapterTest 69 client = new OkHttpClient(); in setUp() 73 if (connection != null) { in tearDown() 74 connection.disconnect(); in tearDown() 80 final URL serverUrl = configureServer(new MockResponse()); in get_httpGet() [all …]
|
| D | ResponseCacheTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 48 import java.net.URL; 99 private OkHttpClient client; field in ResponseCacheTest 106 client = new OkHttpClient(); in setUp() 109 AndroidInternal.setResponseCache(new OkUrlFactory(client), cache); in setUp() 120 private HttpURLConnection openConnection(URL url) { in openConnection() argument 121 return new OkUrlFactory(client).open(url); in openConnection() 126 * http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html#sec13.4 130 // http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html in responseCachingByResponseCode() 185 .addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in assertCached() [all …]
|
| /external/okhttp/okhttp-urlconnection/src/main/java/com/squareup/okhttp/internal/huc/ |
| D | HttpURLConnectionImpl.java | 9 * http://www.apache.org/licenses/LICENSE-2.0 20 import com.squareup.okhttp.Connection; 55 import java.net.URL; 78 * currently connected. Instead, it indicates whether a connection has ever been 79 * attempted. Once a connection has been attempted, certain properties (request 87 final OkHttpClient client; field in HttpURLConnectionImpl 92 private long fixedContentLength = -1; 107 * connected yet, or if the most recent connection was HTTP (and not HTTPS). 113 public HttpURLConnectionImpl(URL url, OkHttpClient client) { in HttpURLConnectionImpl() argument 114 super(url); in HttpURLConnectionImpl() [all …]
|
| /external/okhttp/repackaged/okhttp-urlconnection/src/main/java/com/android/okhttp/internal/huc/ |
| D | HttpURLConnectionImpl.java | 10 * http://www.apache.org/licenses/LICENSE-2.0 21 import com.android.okhttp.Connection; 56 import java.net.URL; 79 * currently connected. Instead, it indicates whether a connection has ever been 80 * attempted. Once a connection has been attempted, certain properties (request 90 final OkHttpClient client; field in HttpURLConnectionImpl 95 private long fixedContentLength = -1; 111 * connected yet, or if the most recent connection was HTTP (and not HTTPS). 117 public HttpURLConnectionImpl(URL url, OkHttpClient client) { in HttpURLConnectionImpl() argument 118 super(url); in HttpURLConnectionImpl() [all …]
|
| /external/python/google-api-python-client/googleapiclient/discovery_cache/documents/ |
| D | chromeuxreport.v1.json | 8 …"documentationLink": "https://developers.google.com/web/tools/chrome-user-experience-report/api/re… 11 "x16": "http://www.google.com/images/icons/product/search-16.gif", 12 "x32": "http://www.google.com/images/icons/product/search-32.gif" 48 "Responses with Content-Type of application/json", 49 "Media download with context-dependent Content-Type", 50 "Responses with Content-Type of application/x-protobuf" 82 …"description": "Available to use for quota purposes for server-side applications. Can be any arbit… 147 …connection type is the general connection class that all users experienced for this record. This f… 160 "The device class representing a \"mobile\"/\"phone\" sized client.", 161 "The device class representing a \"desktop\"/\"laptop\" type full size client.", [all …]
|
| /external/cronet/net/third_party/quiche/src/quiche/quic/masque/ |
| D | masque_client_tools.cc | 2 // Use of this source code is governed by a BSD-style license that can be 36 masque_client_session_->RemoveFakeAddress(*fake_address_); in ~FakeAddressRemover() 53 const QuicUrl url(url_string, "https"); in SendEncapsulatedMasqueRequest() local 58 proof_verifier = CreateDefaultProofVerifier(url.host()); in SendEncapsulatedMasqueRequest() 61 // Build the client, and try to connect. in SendEncapsulatedMasqueRequest() 65 addr = LookupAddress(address_family_for_lookup, url.host(), in SendEncapsulatedMasqueRequest() 66 absl::StrCat(url.port())); in SendEncapsulatedMasqueRequest() 68 QUIC_LOG(ERROR) << "Unable to resolve address: " << url.host(); in SendEncapsulatedMasqueRequest() 73 masque_client->masque_client_session()->GetFakeAddress(url.host()); in SendEncapsulatedMasqueRequest() 75 fake_address, masque_client->masque_client_session()); in SendEncapsulatedMasqueRequest() [all …]
|
| /external/okhttp/okhttp-logging-interceptor/src/test/java/com/squareup/okhttp/logging/ |
| D | HttpLoggingInterceptorTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 44 private static final MediaType PLAIN = MediaType.parse("text/plain; charset=utf-8"); 48 private final OkHttpClient client = new OkHttpClient(); field in HttpLoggingInterceptorTest 50 private HttpUrl url; field in HttpLoggingInterceptorTest 66 client.networkInterceptors().add(networkInterceptor); in setUp() 67 client.interceptors().add(applicationInterceptor); in setUp() 68 client.setConnectionPool(null); in setUp() 71 url = server.url("/"); in setUp() 101 client.newCall(request().build()).execute(); in none() 111 client.newCall(request().build()).execute(); in basicGet() [all …]
|
| /external/okhttp/repackaged/android/src/main/java/com/android/okhttp/internalandroidapi/ |
| D | HttpURLConnectionFactory.java | 9 * http://www.apache.org/licenses/LICENSE-2.0 31 import java.net.URL; 41 * configuration on a per-factory or per-connection basis rather than only via 43 * The per-factory configuration is <b>optional</b>; if not set, global 83 * Opens a connection that uses the system default proxy settings and SocketFactory. 87 public URLConnection openConnection(URL url) throws IOException { in openConnection() argument 88 return internalOpenConnection(url, null /* socketFactory */, null /* proxy */); in openConnection() 92 * Opens a connection that uses the system default SocketFactory and the specified 97 public URLConnection openConnection(URL url, Proxy proxy) throws IOException { in openConnection() argument 99 return internalOpenConnection(url, null /* socketFactory */, proxy); in openConnection() [all …]
|
| /external/okhttp/android/src/main/java/com/android/okhttp/internalandroidapi/ |
| D | HttpURLConnectionFactory.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 30 import java.net.URL; 40 * configuration on a per-factory or per-connection basis rather than only via 42 * The per-factory configuration is <b>optional</b>; if not set, global 81 * Opens a connection that uses the system default proxy settings and SocketFactory. 85 public URLConnection openConnection(URL url) throws IOException { in openConnection() argument 86 return internalOpenConnection(url, null /* socketFactory */, null /* proxy */); in openConnection() 90 * Opens a connection that uses the system default SocketFactory and the specified 95 public URLConnection openConnection(URL url, Proxy proxy) throws IOException { in openConnection() argument 97 return internalOpenConnection(url, null /* socketFactory */, proxy); in openConnection() [all …]
|
| /external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/ |
| D | HttpOverSpdyTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 76 protected final OkUrlFactory client = new OkUrlFactory(new OkHttpClient()); field in HttpOverSpdyTest 77 protected HttpURLConnection connection; field in HttpOverSpdyTest 86 client.client().setProtocols(Arrays.asList(protocol, Protocol.HTTP_1_1)); in setUp() 87 client.client().setSslSocketFactory(sslContext.getSocketFactory()); in setUp() 88 client.client().setHostnameVerifier(hostnameVerifier); in setUp() 100 connection = client.open(server.getUrl("/foo")); in get() 101 assertContent("ABCDE", connection, Integer.MAX_VALUE); in get() 102 assertEquals(200, connection.getResponseCode()); in get() 103 assertEquals("Sweet", connection.getResponseMessage()); in get() [all …]
|
| /external/libwebsockets/minimal-examples/ws-client/minimal-ws-client-echo/ |
| D | README.md | 1 # lws minimal ws client + permessage-deflate echo 3 This example opens a ws client connection to localhost:7681 and 17 ---|--- 18 -d <loglevel>|Debug verbosity in decimal, eg, -d15 19 -p port|Port to connect to 20 -u url|URL path part to connect to 21 -o|Finish after one connection 22 --ssl|Open client connection with ssl 23 -i <iface>|Bind the client connection to interface iface 26 $ ./lws-minimal-ws-client-echo [all …]
|
| /external/cronet/net/data/websocket/ |
| D | README | 4 - connect_check.html : A page provides simple WebSocket connectivity check. 10 - split_packet_check.html : A page for testing split packet handling. Here, 17 - websocket_shared_worker.html : A page provides simple WebSocket test in 22 - close_observer.html : A page that creates a WebSocket connection to 23 close-observer_wsh.py with role=observer and checks the contents of the 27 - connect_and_be_observed.html : A page that creates a WebSocket connection to 28 close-observer_wsh.py with role=observed. 29 This file does NOT close the established connection. 32 - connect_to.html : A page which makes a connection to the WebSocket server 33 specified in the "url" parameter, [all …]
|
| /external/cronet/net/third_party/quiche/src/quiche/quic/tools/ |
| D | quic_toy_client.cc | 2 // Use of this source code is governed by a BSD-style license that can be 6 // Connects to a host using QUIC, sends a request to the provided URL, and 13 // quic_client www.google.com --quiet 14 // quic_client www.google.com --port=443 17 // quic_client www.google.com --quic_version=23 20 // quic_client www.google.com --body="this is a POST body" 23 // quic_client www.google.com --headers="Header-A: 1234; Header-B: 5678" 25 // Connect to a host different to the URL being requested: 26 // quic_client mail.google.com --host=www.google.com 29 // IP=`dig www.google.com +short | head -1` [all …]
|
| /external/rust/crates/tungstenite/src/ |
| D | error.rs | 16 /// WebSocket connection closed normally. This informs you of the close. 21 /// underlying connection if this endpoint is a client. 23 /// Thus when you receive this, it is safe to drop the underlying connection. 27 #[error("Connection closed normally")] 29 /// Trying to work with already closed connection. 34 /// connection when it really shouldn't anymore, so this really indicates a programmer 36 #[error("Trying to work with closed connection")] 38 /// Input-output error. Apart from WouldBlock, these are generally errors with the 39 /// underlying connection and you should probably consider them fatal. 45 /// to provide a feature-agnostic API surface. [all …]
|
| /external/curl/tests/data/ |
| D | test1246 | 3 # verify URL with hostname ending in pound sign 12 # Server-side 16 Content-Length: 6 17 Connection: close 19 -foo- 24 Content-Length: 7 25 Connection: close 27 -cool- 32 # Client-side 33 <client> [all …]
|
| D | test1538 | 10 # Server-side 14 # Client-side 15 <client> 29 </client> 38 e3: URL using bad/illegal format or missing URL 39 e4: A requested feature, protocol or option was not found built-in in this libcurl due to a build-t… 80 e45: Failed binding local connection end 96 e61: Unrecognized or bad HTTP Content or Transfer-Encoding 115 e80: Failed to shut down the SSL connection 124 e89: The max connection limit is reached [all …]
|
| /external/cronet/net/tools/testserver/ |
| D | testserver.py | 3 # Use of this source code is governed by a BSD-style license that can be 78 """This is a specialization of StoppableHTTPServer that adds client 79 verification and creates a new thread for every connection. It 98 """This is the catch-all response handler for requests that aren't handled 100 Note that we specify the content-length as without it the https connection 105 self.send_header('Content-Type', 'text/html') 106 self.send_header('Content-Length', len(contents)) 113 """This is the catch-all response handler for CONNECT requests that aren't 117 contents = "Your client has issued a malformed or illegal request." 119 self.send_header('Content-Type', 'text/html') [all …]
|
| /external/rust/crates/mio/ |
| D | README.md | 3 Mio is a fast, low-level I/O library for Rust focusing on non-blocking APIs and 7 [![Crates.io][crates-badge]][crates-url] 8 [![MIT licensed][mit-badge]][mit-url] 9 [![Build Status][actions-badge]][actions-url] 10 [![Build Status][cirrus-badge]][cirrus-url] 12 [crates-badge]: https://img.shields.io/crates/v/mio.svg 13 [crates-url]: https://crates.io/crates/mio 14 [mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg 15 [mit-url]: LICENSE 16 [actions-badge]: https://github.com/tokio-rs/mio/workflows/CI/badge.svg [all …]
|
| /external/libwebsockets/READMEs/ |
| D | README.unix-domain-reverse-proxy.md | 5 lws is able to use a mount to place reverse proxies into the URL space. 9 server process and integrate the result into a coherent URL namespace on 12  17 the actual public-facing web server. The unix domain socket server may 20 Compared to CGI, there are no forks to make a connection to the unix 31 url space. 44 http/1.1. That implies `transfer-encoding: chunking` in the case that the 48 translating between h1 and h2 header formats if the return connection is 51 The h1 onward proxy connection translates the following headers from the return 52 connection, which may be h1 or h2: [all …]
|
| /external/aws-sdk-java-v2/buildspecs/ |
| D | archetype-native-image-test.yml | 7 - mvn clean install -pl :archetype-app-quickstart -P quick --am -T1C 8 - mvn clean install -pl :bom,:bom-internal -P quick 9 - CURRENT_VERSION=$(cat pom.xml | grep "<version>" | head -1 | cut -d\> -f 2 | cut -d\< -f 1) 10 - echo "Current version is $CURRENT_VERSION" 11 - cd .. && mkdir tmp 12 - cd tmp 13 - | 15 -DarchetypeGroupId=software.amazon.awssdk \ 16 -DarchetypeArtifactId=archetype-app-quickstart \ 17 -DarchetypeVersion=$CURRENT_VERSION \ [all …]
|
| /external/python/google-auth-library-python/google/auth/transport/ |
| D | _http_client.py | 7 # http://www.apache.org/licenses/LICENSE-2.0 15 """Transport adapter for http.client, for internal use only.""" 31 """http.client transport response adapter. 34 response (http.client.HTTPResponse): The raw http client response. 56 """http.client transport request adapter.""" 59 self, url, method="GET", body=None, headers=None, timeout=None, **kwargs argument 61 """Make an HTTP request using http.client. 64 url (str): The URI to be requested. 73 :meth:`~http.client.HTTPConnection.request` method. 81 # socket._GLOBAL_DEFAULT_TIMEOUT is the default in http.client. [all …]
|