Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 82 for encoding (0.29 sec)

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

        if (idleDurationNs >= IDLE_CONNECTION_HEALTHY_NS && doExtensiveChecks) {
          return socket.isHealthy(source)
        }
    
        return true
      }
    
      /** Refuse incoming streams. */
      @Throws(IOException::class)
      override fun onStream(stream: Http2Stream) {
        stream.close(ErrorCode.REFUSED_STREAM, null)
      }
    
      /** When settings are received, adjust the allocation limit. */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  2. docs/changelogs/changelog_4x.md

        the certificate that follows and the last certificate is signed by a trusted root.
    
     *  Fix: Don't lose HTTP/2 flow control bytes when incoming data races with a stream close. If this
        happened enough then eventually the connection would stall.
    
     *  Fix: Acknowledge and apply inbound HTTP/2 settings atomically. Previously we had a race where we
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

     * ```
     *
     * When parsing URLs that lack percent encoding where it is required, this class will percent encode
     * the offending characters.
     *
     * ### IDNA Mapping and Punycode encoding
     *
     * Hostnames have different requirements and use a different encoding scheme. It consists of IDNA
     * mapping and Punycode encoding.
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 63.5K bytes
    - Viewed (1)
  4. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt

       * SET types.
       *
       * The fields are specified as a list of member adapters. When decoding, a value for each
       * non-optional member but be included in sequence.
       *
       * TODO: for sets, sort by tag when encoding.
       * TODO: for set ofs, sort by encoded value when encoding.
       */
      fun <T> sequence(
        name: String,
        vararg members: DerAdapter<*>,
        decompose: (T) -> List<*>,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15K bytes
    - Viewed (0)
  5. regression-test/src/main/res/xml/network_security_config.xml

    <?xml version="1.0" encoding="utf-8"?>
    <network-security-config>
      <base-config cleartextTrafficPermitted="false">
      </base-config>
    XML
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Nov 13 07:09:56 GMT 2020
    - 158 bytes
    - Viewed (0)
  6. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt

    /**
     * Streaming decoder of data encoded following Abstract Syntax Notation One (ASN.1). There are
     * multiple variants of ASN.1, including:
     *
     *  * DER: Distinguished Encoding Rules. This further constrains ASN.1 for deterministic encoding.
     *  * BER: Basic Encoding Rules.
     *
     * This class was implemented according to the [X.690 spec][[x690]], and under the advice of
     * [Lets Encrypt's ASN.1 and DER][asn1_and_der] guide.
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  7. samples/guide/src/main/java/okhttp3/recipes/RequestBodyCompression.java

          Request originalRequest = chain.request();
          if (originalRequest.body() == null || originalRequest.header("Content-Encoding") != null) {
            return chain.proceed(originalRequest);
          }
    
          Request compressedRequest = originalRequest.newBuilder()
              .header("Content-Encoding", "gzip")
              .method(originalRequest.method(), gzip(originalRequest.body()))
              .build();
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat May 25 18:02:55 GMT 2019
    - 3.8K bytes
    - Viewed (0)
  8. samples/compare/src/test/kotlin/okhttp3/compare/JettyHttpClientTest.kt

        assertThat(response.contentAsString).isEqualTo("hello, Jetty HTTP Client")
    
        val recorded = server.takeRequest()
        assertThat(recorded.headers["Accept"]).isEqualTo("text/plain")
        assertThat(recorded.headers["Accept-Encoding"]).isEqualTo("gzip")
        assertThat(recorded.headers["Connection"]).isNull()
        assertThat(recorded.headers["User-Agent"]!!).matches(Regex("Jetty/.*"))
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/RequestBody.kt

       * designed for this nonstandard interaction will use it. As of 2019-01, the only widely-used
       * implementation of this pattern is [gRPC][grpc].
       *
       * Because the encoding of interleaved data is not well-defined for HTTP/1, duplex request
       * bodies may only be used with HTTP/2. Calls to HTTP/1 servers will fail before the HTTP request
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Jan 25 14:41:37 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  10. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

      }
    
      @Test
      fun nonHexadecimalChunkSize() {
        server.enqueue(
          MockResponse()
            .setBody("G\r\nxxxxxxxxxxxxxxxx\r\n0\r\n\r\n")
            .clearHeaders()
            .addHeader("Transfer-encoding: chunked"),
        )
        val connection = server.url("/").toUrl().openConnection()
        val inputStream = connection.getInputStream()
        try {
          inputStream.read()
          fail<Any>()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 21.9K bytes
    - Viewed (0)
Back to top