Search Options

Results per page
Sort
Preferred Languages
Advance

Results 911 - 920 of 1,839 for CLIENT (0.04 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

      @Throws(SocketException::class)
      internal fun newCodec(
        client: OkHttpClient,
        chain: RealInterceptorChain,
      ): ExchangeCodec {
        val socket = this.socket!!
        val source = this.source!!
        val sink = this.sink!!
        val http2Connection = this.http2Connection
    
        return if (http2Connection != null) {
          Http2ExchangeCodec(client, this, chain, http2Connection)
        } else {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  2. samples/compare/src/test/kotlin/okhttp3/compare/OkHttpClientTest.kt

      @Test fun get(server: MockWebServer) {
        server.enqueue(MockResponse(body = "hello, OkHttp"))
    
        val client = OkHttpClient()
    
        val request =
          Request.Builder()
            .url(server.url("/"))
            .header("Accept", "text/plain")
            .build()
        val response = client.newCall(request).execute()
        assertThat(response.code).isEqualTo(200)
        assertThat(response.body.string()).isEqualTo("hello, OkHttp")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. samples/guide/src/main/java/okhttp3/recipes/AsynchronousGet.java

    import okhttp3.Response;
    import okhttp3.ResponseBody;
    
    public final class AsynchronousGet {
      private final OkHttpClient client = new OkHttpClient();
    
      public void run() throws Exception {
        Request request = new Request.Builder()
            .url("http://publicobject.com/helloworld.txt")
            .build();
    
        client.newCall(request).enqueue(new Callback() {
          @Override public void onFailure(Call call, IOException e) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun May 22 01:29:42 UTC 2016
    - 1.9K bytes
    - Viewed (0)
  4. samples/guide/src/main/java/okhttp3/recipes/ParseResponseWithMoshi.java

    import java.io.IOException;
    import java.util.Map;
    import okhttp3.OkHttpClient;
    import okhttp3.Request;
    import okhttp3.Response;
    
    public final class ParseResponseWithMoshi {
      private final OkHttpClient client = new OkHttpClient();
      private final Moshi moshi = new Moshi.Builder().build();
      private final JsonAdapter<Gist> gistJsonAdapter = moshi.adapter(Gist.class);
    
      public void run() throws Exception {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun May 22 01:29:42 UTC 2016
    - 1.8K bytes
    - Viewed (0)
  5. okhttp-brotli/README.md

    provided Accept-Encoding is not set previously.  Modern web servers
    must choose to return Brotli responses.  n.b. It is not used for
    sending requests.
    
    ```java
    OkHttpClient client = new OkHttpClient.Builder()
      .addInterceptor(BrotliInterceptor.INSTANCE)
      .build();
    ```
    
    ```kotlin
    implementation("com.squareup.okhttp3:okhttp-brotli:4.12.0")
    ```
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Dec 17 15:34:10 UTC 2023
    - 572 bytes
    - Viewed (0)
  6. helm/minio/templates/networkpolicy.yaml

            - port: {{ .Values.minioConsolePort }}
          {{- if not .Values.networkPolicy.allowExternal }}
          from:
            - podSelector:
                matchLabels:
                  {{ template "minio.name" . }}-client: "true"
          {{- end }}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jan 24 07:27:57 UTC 2024
    - 819 bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/SmbComSessionSetupAndX.java

    class SmbComSessionSetupAndX extends AndXServerMessageBlock {
    
        private static final int BATCH_LIMIT =
                Config.getInt( "jcifs.smb1.smb.client.SessionSetupAndX.TreeConnectAndX", 1 );
        private static final boolean DISABLE_PLAIN_TEXT_PASSWORDS =
                Config.getBoolean( "jcifs.smb1.smb.client.disablePlainTextPasswords", true );
    
        private byte[] lmHash, ntHash, blob = null;
        private int sessionKey, capabilities;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 7.3K bytes
    - Viewed (0)
  8. common-protos/k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto

      // The server returns only those CIDRs that it thinks that the client can match.
      // For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
      // Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
      repeated ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
    }
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  9. architecture/ambient/ztunnel.md

    Below shows an example outbound request. The "target" path is what the client sends, while the "actual" path is the real network flow after redirection.
    
    ```mermaid
    graph LR
        subgraph Client Node
            Client
            CZ["Ztunnel"]
        end
        subgraph Server Node
            Server
            SZ["Ztunnel"]
        end
        Client--Plain-->CZ
        CZ-."HBONE (target)".->Server
        CZ--"HBONE (actual)"-->SZ
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Jul 17 23:10:17 UTC 2024
    - 16.8K bytes
    - Viewed (0)
  10. samples/unixdomainsockets/src/main/java/okhttp3/unixdomainsockets/ClientAndServer.java

        server.start();
    
        OkHttpClient client = new OkHttpClient.Builder()
            .socketFactory(new UnixDomainSocketFactory(socketFile))
            .protocols(Collections.singletonList(Protocol.H2_PRIOR_KNOWLEDGE))
            .build();
    
        Request request = new Request.Builder()
            .url("http://publicobject.com/helloworld.txt")
            .build();
    
        try (Response response = client.newCall(request).execute()) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Dec 24 03:46:30 UTC 2018
    - 2.1K bytes
    - Viewed (0)
Back to top