Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for Escape (0.2 sec)

  1. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

      }
    
      @Test
      fun parseHostAsciiNonPrintable() {
        val host = "host\u0001"
        assertInvalid("http://$host/", "Invalid URL host: \"host\u0001\"")
        // TODO make exception message escape non-printable characters
      }
    
      @Test
      fun parseDoesNotTrimOtherWhitespaceCharacters() {
        // Whitespace characters list from Google's Guava team: http://goo.gl/IcR9RD
        // line tabulation
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 67.9K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/UrlComponentEncodingTester.kt

          encodings[ 0xb] = encoding // Vertical Tab
          encodings[ 0xe] = encoding // Shift Out
          encodings[ 0xf] = encoding // Shift In
          encodings[ 0x10] = encoding // Data Link Escape
          encodings[ 0x11] = encoding // Device Control 1 (oft. XON)
          encodings[ 0x12] = encoding // Device Control 2
          encodings[ 0x13] = encoding // Device Control 3 (oft. XOFF)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  3. samples/slack/src/main/java/okhttp3/slack/SlackApi.java

        HttpUrl.Builder builder = baseUrl.newBuilder("/oauth/authorize")
            .addQueryParameter("client_id", clientId)
            .addQueryParameter("scope", scopes)
            .addQueryParameter("redirect_uri", redirectUrl.toString())
            .addQueryParameter("state", state.base64());
    
        if (team != null) {
          builder.addQueryParameter("team", team);
        }
    
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Jul 06 19:30:55 GMT 2018
    - 4.4K bytes
    - Viewed (1)
  4. okhttp/src/test/java/okhttp3/UrlComponentEncodingTesterJvm.kt

      private val uriEscapedCodePoints = StringBuilder()
      private val uriStrippedCodePoints = StringBuilder()
    
      /**
       * Configure code points to be escaped for conversion to `java.net.URI`. That class is more
       * strict than the others.
       */
      fun escapeForUri(vararg codePoints: Int) =
        apply {
          uriEscapedCodePoints.append(String(*codePoints))
        }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/OkHttpClientTest.kt

        )
        assertSame(
          client.routeDatabase,
          client.newBuilder()
            .callTimeout(Duration.ofSeconds(5))
            .build()
            .routeDatabase,
        )
    
        // logically different scope of client for route db
        assertNotSame(
          client.routeDatabase,
          client.newBuilder()
            .dns { listOf() }
            .build()
            .routeDatabase,
        )
        assertNotSame(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  6. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt

      private val bytesLeft: Long
        get() = if (limit == -1L) -1L else (limit - byteCount)
    
      fun hasNext(): Boolean = peekHeader() != null
    
      /**
       * Returns the next header to process unless this scope is exhausted.
       *
       * This returns null if:
       *
       *  * The stream is exhausted.
       *  * We've read all of the bytes of an object whose length is known.
    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. okhttp/src/main/kotlin/okhttp3/internal/http/HttpHeaders.kt

          result.write(this, i)
          // Consume '"'.
          readByte()
          return result.readUtf8()
        }
    
        if (size == i + 1L) return null // Dangling escape.
        result.write(this, i)
        // Consume '\'.
        readByte()
        result.write(this, 1L) // The escaped character.
      }
    }
    
    /**
     * Consumes and returns a non-empty token, terminating at special characters in
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/WebPlatformUrlTestData.kt

                't'.code -> append('\t')
                'f'.code -> append('\u000c')
                'u'.code -> append(buffer.readUtf8(4).toInt(16).toChar())
                else -> throw IllegalArgumentException("unexpected escape character in $s")
              }
            }
          }
        }
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  9. kotlin-js-store/yarn.lock

    escape-html@~1.0.3:
      version "1.0.3"
      resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988"
      integrity sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==
    
    escape-string-regexp@4.0.0:
      version "4.0.0"
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jul 22 12:28:51 GMT 2023
    - 87.4K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/MultipartBody.kt

        private val DASHDASH = byteArrayOf('-'.code.toByte(), '-'.code.toByte())
    
        /**
         * Appends a quoted-string to a StringBuilder.
         *
         * RFC 2388 is rather vague about how one should escape special characters in form-data
         * parameters, and as it turns out Firefox and Chrome actually do rather different things, and
         * both say in their comments that they're not really sure what the right approach is. We go
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.9K bytes
    - Viewed (0)
Back to top