- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 20 for encodeQuery (0.09 seconds)
-
okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsRecordCodecTest.kt
fun testGoogleDotComEncoding() { val encoded = encodeQuery("google.com", TYPE_A) assertThat(encoded).isEqualTo("AAABAAABAAAAAAAABmdvb2dsZQNjb20AAAEAAQ") } private fun encodeQuery( host: String, type: Int, ): String = DnsRecordCodec.encodeQuery(host, type).base64Url().replace("=", "") @Test fun testGoogleDotComEncodingWithIPv6() { val encoded = encodeQuery("google.com", TYPE_AAAA)
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu May 29 20:09:10 GMT 2025 - 3.6K bytes - Click Count (0) -
okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsRecordCodec.kt
private const val SERVFAIL = 2 private const val NXDOMAIN = 3 const val TYPE_A = 0x0001 const val TYPE_AAAA = 0x001c private const val TYPE_PTR = 0x000c private val ASCII = Charsets.US_ASCII fun encodeQuery( host: String, type: Int, ): ByteString = Buffer() .apply { writeShort(0) // query id writeShort(256) // flags with recursion writeShort(1) // question countCreated: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 3.9K bytes - Click Count (0) -
okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt
hostname: String, type: Int, ): Request = Request .Builder() .header("Accept", DNS_MESSAGE.toString()) .apply { val query = DnsRecordCodec.encodeQuery(hostname, type) val dnsUrl: HttpUrl = ******@****.*** if (post) { url(dnsUrl) .cacheUrlOverride( dnsUrl .newBuilder()Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sat May 10 11:15:14 GMT 2025 - 8.6K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/WebPlatformUrlTest.kt
val effectivePort = when { url!!.port != defaultPort(url.scheme) -> Integer.toString(url.port) else -> "" } val effectiveQuery = when { url.encodedQuery != null -> "?" + url.encodedQuery else -> "" } val effectiveFragment = when { url.encodedFragment != null -> "#" + url.encodedFragment else -> "" } val effectiveHost =Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 4.7K bytes - Click Count (0) -
cmd/signature-v2.go
return cred, ErrSignatureDoesNotMatch } return cred, ErrNone } // Escape encodedQuery string into unescaped list of query params, returns error // if any while unescaping the values. func unescapeQueries(encodedQuery string) (unescapedQueries []string, err error) { for query := range strings.SplitSeq(encodedQuery, "&") { var unescapedQuery string unescapedQuery, err = url.QueryUnescape(query) if err != nil {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 12.2K bytes - Click Count (0) -
okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt
assertThat(request1.method).isEqualTo("GET") val request2 = server.takeRequest() assertThat(request2.method).isEqualTo("GET") assertThat(listOf(request1.url.encodedQuery, request2.url.encodedQuery)) .containsExactlyInAnyOrder( "ct&dns=AAABAAABAAAAAAAABmdvb2dsZQNjb20AAAEAAQ", "ct&dns=AAABAAABAAAAAAAABmdvb2dsZQNjb20AABwAAQ", ) } @Test fun failure() {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Nov 04 19:13:52 GMT 2025 - 11.9K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/util/FacetResponse.java
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Nov 23 11:39:05 GMT 2025 - 5.3K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/HttpUrl.kt
@JvmName("-deprecated_encodedQuery") @Deprecated( message = "moved to val", replaceWith = ReplaceWith(expression = "encodedQuery"), level = DeprecationLevel.ERROR, ) fun encodedQuery(): String? = encodedQuery @JvmName("-deprecated_query") @Deprecated( message = "moved to val", replaceWith = ReplaceWith(expression = "query"),Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 63.5K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/KotlinDeprecationErrorTest.kt
val encodedPath: String = httpUrl.encodedPath() val encodedPathSegments: List<String> = httpUrl.encodedPathSegments() val pathSegments: List<String> = httpUrl.pathSegments() val encodedQuery: String? = httpUrl.encodedQuery() val query: String? = httpUrl.query() val querySize: Int = httpUrl.querySize() val queryParameter: String? = httpUrl.queryParameter("")
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 13.3K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/RequestLine.kt
* URL is. Includes the query component if it exists. */ fun requestPath(url: HttpUrl): String { val path = url.encodedPath val query = url.encodedQuery return if (query != null) "$path?$query" else path }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jun 17 00:47:36 GMT 2025 - 1.9K bytes - Click Count (0)