Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 257 for encodings (0.05 sec)

  1. src/main/java/org/codelibs/core/xml/DomUtil.java

         *
         * @param contents
         *            The content. Must not be {@literal null}.
         * @param encoding
         *            The encoding. If {@literal null}, the platform's default encoding will be used.
         * @return {@link InputStream}
         */
        public static InputStream getContentsAsStream(final String contents, final String encoding) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/InterceptorTest.kt

        server.enqueue(
          MockResponse
            .Builder()
            .body(gzip("abcabcabc"))
            .addHeader("Content-Encoding: gzip")
            .build(),
        )
        val interceptor =
          Interceptor { chain: Interceptor.Chain ->
            // The network request has everything: User-Agent, Host, Accept-Encoding.
            val networkRequest = chain.request()
            assertThat(networkRequest.header("User-Agent")).isNotNull()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 28.2K bytes
    - Viewed (0)
  3. docs/features/interceptors.md

    User-Agent: OkHttp Example
    Host: publicobject.com
    Connection: Keep-Alive
    Accept-Encoding: gzip
    
    INFO: Received response for https://publicobject.com/helloworld.txt in 80.9ms
    Server: nginx/1.4.6 (Ubuntu)
    Content-Type: text/plain
    Content-Length: 1759
    Connection: keep-alive
    ```
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 8.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/hash/SipHashFunction.java

        // The number of bytes in the input.
        private long b = 0;
    
        // The final 64-bit chunk includes the last 0 through 7 bytes of m followed by null bytes
        // and ending with a byte encoding the positive integer b mod 256.
        private long finalM = 0;
    
        SipHasher(int c, int d, long k0, long k1) {
          super(CHUNK_SIZE);
          this.c = c;
          this.d = d;
          this.v0 ^= k0;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Header.kt

    import okio.ByteString.Companion.encodeUtf8
    
    /** HTTP header: the name is an ASCII string, but the value can be UTF-8. */
    data class Header(
      /** Name in case-insensitive ASCII encoding. */
      @JvmField val name: ByteString,
      /** Value in UTF-8 encoding. */
      @JvmField val value: ByteString,
    ) {
      @JvmField val hpackSize = 32 + name.size + value.size
    
      // TODO: search for toLowerCase and consider moving logic here.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/net/URLUtil.java

        }
    
        /**
         * Converts a string into <code>application/x-www-form-urlencoded</code>
         * format using the specified encoding scheme.
         *
         * @param s
         *            The string to be converted. Must not be {@literal null} or empty.
         * @param enc
         *            The encoding scheme. Must not be {@literal null} or empty.
         * @return The string encoded in <code>application/x-www-form-urlencoded</code> format.
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  7. guava/src/com/google/common/net/UrlEscapers.java

       * href="https://url.spec.whatwg.org/#application-x-www-form-urlencoded-percent-encode-set">URL
       * form parameter names and values</a>. Escaping is performed with the UTF-8 character encoding.
       * The caller is responsible for <a
       * href="https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#multipart-form-data">replacing
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/thirdparty/publicsuffix/PublicSuffixType.java

      /** Public suffix that is backed by an ICANN-style domain name registry */
      REGISTRY('!', '?');
    
      /** The character used for an inner node in the trie encoding */
      private final char innerNodeCode;
    
      /** The character used for a leaf node in the trie encoding */
      private final char leafNodeCode;
    
      PublicSuffixType(char innerNodeCode, char leafNodeCode) {
        this.innerNodeCode = innerNodeCode;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Dec 16 19:54:45 UTC 2020
    - 2K bytes
    - Viewed (0)
  9. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt

            } else {
              var buffer = Buffer()
              requestBody.writeTo(buffer)
    
              var gzippedLength: Long? = null
              if ("gzip".equals(headers["Content-Encoding"], ignoreCase = true)) {
                gzippedLength = buffer.size
                GzipSource(buffer).use { gzippedResponseBody ->
                  buffer = Buffer()
                  buffer.writeAll(gzippedResponseBody)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Aug 21 14:27:04 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/net/PercentEscaper.java

     *   <li>All other characters are converted into one or more bytes using UTF-8 encoding and each
     *       byte is then represented by the 3-character string "%XX", where "XX" is the two-digit,
     *       uppercase, hexadecimal representation of the byte value.
     * </ul>
     *
     * <p>For performance reasons the only currently supported character encoding of this class is
     * UTF-8.
     *
     * <p><b>Note:</b> This escaper produces <a
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 28 01:26:26 UTC 2024
    - 8.6K bytes
    - Viewed (0)
Back to top