- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 19 for brotli (0.08 sec)
-
okhttp-brotli/api/okhttp-brotli.api
public final class okhttp3/brotli/BrotliInterceptor : okhttp3/Interceptor { public static final field INSTANCE Lokhttp3/brotli/BrotliInterceptor; public fun intercept (Lokhttp3/Interceptor$Chain;)Lokhttp3/Response;
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Feb 26 19:17:33 UTC 2022 - 220 bytes - Viewed (0) -
okhttp-brotli/README.md
OkHttp Brotli Implementation ============================ This module is an implementation of [Brotli][1] compression. It enables Brotli support in addition to tranparent Gzip support, 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();
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Dec 17 15:34:10 UTC 2023 - 572 bytes - Viewed (0) -
okhttp-brotli/src/main/kotlin/okhttp3/brotli/BrotliInterceptor.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package okhttp3.brotli import okhttp3.Interceptor import okhttp3.Response import okhttp3.brotli.internal.uncompress /** * Transparent Brotli response support. * * Adds Accept-Encoding: br to request and checks (and strips) for Content-Encoding: br in
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.3K bytes - Viewed (0) -
okhttp-brotli/build.gradle.kts
id("com.vanniktech.maven.publish.base") id("binary-compatibility-validator") } project.applyOsgi( "Export-Package: okhttp3.brotli", "Automatic-Module-Name: okhttp3.brotli", "Bundle-SymbolicName: com.squareup.okhttp3.brotli" ) dependencies { api(projects.okhttp) api(libs.brotli.dec) compileOnly(libs.findbugs.jsr305) testImplementation(projects.okhttpTestingSupport)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 06 05:31:00 UTC 2024 - 819 bytes - Viewed (0) -
okhttp-brotli/src/test/java/okhttp3/brotli/BrotliTestMain.kt
* limitations under the License. */ package okhttp3.brotli import okhttp3.OkHttpClient import okhttp3.Request fun main() { val client = OkHttpClient.Builder() .addInterceptor(BrotliInterceptor) .build() sendRequest("https://httpbin.org/brotli", client) sendRequest("https://httpbin.org/gzip", client) } private fun sendRequest(
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.1K bytes - Viewed (0) -
okhttp-brotli/src/test/java/okhttp3/brotli/BrotliInterceptorTest.kt
"5cb384cd0912aeb5b5dd9555f2dd1a9b20688201" val response = response("https://httpbin.org/brotli", s.decodeHex()) { header("Content-Encoding", "br") } val uncompressed = uncompress(response) val responseString = uncompressed.body.string() assertThat(responseString).contains("\"brotli\": true,") assertThat(responseString).contains("\"Accept-Encoding\": \"br\"") } @Test
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.2K bytes - Viewed (0) -
okhttp-brotli/src/main/kotlin/okhttp3/brotli/internal/Uncompress.kt
* limitations under the License. */ package okhttp3.brotli.internal import okhttp3.Response import okhttp3.ResponseBody.Companion.asResponseBody import okhttp3.internal.http.promisesBody import okio.GzipSource import okio.buffer import okio.source import org.brotli.dec.BrotliInputStream fun uncompress(response: Response): Response { if (!response.promisesBody()) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 01 13:19:01 UTC 2024 - 1.5K bytes - Viewed (0) -
native-image-tests/src/main/resources/testlist.txt
okhttp3.RequestTest okhttp3.ResponseBodyTest okhttp3.ResponseTest okhttp3.SampleTest okhttp3.ServerTruncatesRequestTest okhttp3.SocksProxyTest okhttp3.URLConnectionTest okhttp3.WebPlatformUrlTest okhttp3.brotli.BrotliInterceptorJavaApiTest okhttp3.brotli.BrotliInterceptorTest okhttp3.dnsoverhttps.DnsOverHttpsTest okhttp3.dnsoverhttps.DnsRecordCodecTest okhttp3.internal.UtilTest okhttp3.internal.authenticator.JavaNetAuthenticatorTest
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu May 11 14:48:57 UTC 2023 - 2.8K bytes - Viewed (0) -
docs/changelogs/changelog_4x.md
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Apr 17 13:25:31 UTC 2024 - 25.2K bytes - Viewed (0) -
native-image-tests/build.gradle.kts
implementation(libs.nativeImageSvm) compileOnly(libs.findbugs.jsr305) } animalsniffer { isIgnoreFailures = true } sourceSets { main { java.srcDirs( "../okhttp-brotli/src/test/java", "../okhttp-dnsoverhttps/src/test/java", "../okhttp-logging-interceptor/src/test/java", "../okhttp-sse/src/test/java", ) } } graal { mainClass("okhttp3.RunTestsKt")
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 06 05:31:00 UTC 2024 - 1.6K bytes - Viewed (0)