- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 20 for brotli (0.46 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;
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Sat Feb 26 19:17:33 GMT 2022 - 220 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
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 4.2K 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();
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Sun Dec 17 15:34:10 GMT 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
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 1.3K bytes - Viewed (0) -
okhttp-brotli/src/test/java/okhttp3/brotli/BrotliBombTest.kt
* limitations under the License. */ package okhttp3.brotli import assertk.assertFailure import assertk.assertions.isInstanceOf import assertk.assertions.isNotNull import assertk.assertions.matches import assertk.assertions.message import okhttp3.Protocol import okhttp3.Request import okhttp3.Response import okhttp3.ResponseBody.Companion.toResponseBody import okhttp3.brotli.internal.uncompress import okio.Buffer
Plain Text - Registered: Fri Mar 29 11:42:11 GMT 2024 - Last Modified: Mon Jan 29 22:50:20 GMT 2024 - 2.9K 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)
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Sat Jan 06 05:31:00 GMT 2024 - 819 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()) {
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Mon Apr 01 13:19:01 GMT 2024 - 1.5K 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(
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 1.1K bytes - Viewed (3) -
docs/changelogs/changelog_4x.md
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Wed Apr 17 13:25:31 GMT 2024 - 25.2K 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
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Thu May 11 14:48:57 GMT 2023 - 2.8K bytes - Viewed (0)