Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 75 for mediaTypes (0.06 sec)

  1. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

    1. import assertk.assertions.matches
    2. import java.net.UnknownHostException
    3. import mockwebserver3.MockResponse
    4. import mockwebserver3.MockWebServer
    5. import okhttp3.HttpUrl
    6. import okhttp3.Interceptor
    7. import okhttp3.MediaType
    8. import okhttp3.MediaType.Companion.toMediaType
    9. import okhttp3.OkHttpClient
    10. import okhttp3.Protocol
    11. import okhttp3.RecordingHostnameVerifier
    12. import okhttp3.Request
    13. import okhttp3.RequestBody
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 09:14:38 UTC 2024
    - 37.6K bytes
    - Viewed (0)
  2. docs/features/interceptors.md

    1. .build();
    2. return chain.proceed(compressedRequest);
    3. }
    4.  
    5. private RequestBody gzip(final RequestBody body) {
    6. return new RequestBody() {
    7. @Override public MediaType contentType() {
    8. return body.contentType();
    9. }
    10.  
    11. @Override public long contentLength() {
    12. return -1; // We don't know the compressed length in advance!
    13. }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 8.1K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

    1. import okhttp3.Cookie
    2. import okhttp3.Credentials.basic
    3. import okhttp3.EventListener
    4. import okhttp3.Headers.Companion.headersOf
    5. import okhttp3.HttpUrl.Companion.toHttpUrl
    6. import okhttp3.Interceptor
    7. import okhttp3.MediaType
    8. import okhttp3.MediaType.Companion.toMediaType
    9. import okhttp3.OkHttpClient
    10. import okhttp3.OkHttpClientTestRule
    11. import okhttp3.Protocol
    12. import okhttp3.RecordingCookieJar
    13. import okhttp3.RecordingHostnameVerifier
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 75.3K bytes
    - Viewed (0)
  4. docs/changelogs/changelog_3x.md

    1. when the URL is malformed instead of returning null. Use this to avoid checking for null in
    2. situations where the input is known to be well-formed. We've also added `MediaType.get(String)`
    3. which is an exception-throwing alternative to `MediaType.parse(String)`.
    4. * New: The `EventListener` API previewed in OkHttp 3.9 has graduated to a stable API. Use this
    5. interface to track metrics and monitor HTTP requests' size and duration.
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 06 14:55:54 UTC 2022
    - 50.8K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

    1. import okhttp3.Credentials.basic
    2. import okhttp3.Headers.Companion.headersOf
    3. import okhttp3.HttpUrl.Companion.toHttpUrl
    4. import okhttp3.HttpUrl.Companion.toHttpUrlOrNull
    5. import okhttp3.MediaType.Companion.toMediaType
    6. import okhttp3.RequestBody.Companion.toRequestBody
    7. import okhttp3.TestUtil.assertSuppressed
    8. import okhttp3.internal.RecordingAuthenticator
    9. import okhttp3.internal.RecordingOkAuthenticator
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/EventListenerTest.kt

    1. import okhttp3.CallEvent.ResponseFailed
    2. import okhttp3.CallEvent.ResponseHeadersEnd
    3. import okhttp3.CallEvent.ResponseHeadersStart
    4. import okhttp3.CallEvent.SecureConnectEnd
    5. import okhttp3.CallEvent.SecureConnectStart
    6. import okhttp3.MediaType.Companion.toMediaType
    7. import okhttp3.RequestBody.Companion.toRequestBody
    8. import okhttp3.ResponseBody.Companion.toResponseBody
    9. import okhttp3.internal.DoubleInetAddressDns
    10. import okhttp3.internal.RecordingOkAuthenticator
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 56.9K bytes
    - Viewed (2)
  7. okhttp-android/src/main/baseline-prof.txt

    1. HSPLokhttp3/internal/_MediaTypeCommonKt;->commonToMediaType(Ljava/lang/String;)Lokhttp3/MediaType;
    2. HSPLokhttp3/internal/_RequestBodyCommonKt$commonToRequestBody$1;-><init>(Lokhttp3/MediaType;I[BI)V
    3. HSPLokhttp3/internal/_RequestBodyCommonKt$commonToRequestBody$1;->contentLength()J
    4. HSPLokhttp3/internal/_RequestBodyCommonKt$commonToRequestBody$1;->contentType()Lokhttp3/MediaType;
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Mar 21 11:22:00 UTC 2022
    - 127.9K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/CallTest.kt

    1. import okhttp3.CallEvent.ResponseFailed
    2. import okhttp3.CertificatePinner.Companion.pin
    3. import okhttp3.Credentials.basic
    4. import okhttp3.Headers.Companion.headersOf
    5. import okhttp3.HttpUrl.Companion.toHttpUrl
    6. import okhttp3.MediaType.Companion.toMediaType
    7. import okhttp3.RequestBody.Companion.toRequestBody
    8. import okhttp3.ResponseBody.Companion.asResponseBody
    9. import okhttp3.TestUtil.assumeNotWindows
    10. import okhttp3.TestUtil.awaitGarbageCollection
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/ConnectionReuseTest.kt

    1. import mockwebserver3.MockWebServer
    2. import mockwebserver3.SocketPolicy.DisconnectAfterRequest
    3. import mockwebserver3.SocketPolicy.DisconnectAtEnd
    4. import okhttp3.Headers.Companion.headersOf
    5. import okhttp3.MediaType.Companion.toMediaType
    6. import okhttp3.RequestBody.Companion.toRequestBody
    7. import okhttp3.ResponseBody.Companion.toResponseBody
    8. import okhttp3.internal.closeQuietly
    9. import okhttp3.testing.PlatformRule
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/DuplexTest.kt

    1. )
    2. val call =
    3. client.newCall(
    4. Request.Builder()
    5. .url(server.url("/"))
    6. .post(
    7. object : RequestBody() {
    8. override fun contentType(): MediaType? {
    9. return null
    10. }
    11.  
    12. override fun writeTo(sink: BufferedSink) {
    13. try {
    14. for (i in 0..9) {
    15. sink.writeUtf8(".")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 23.9K bytes
    - Viewed (0)
Back to top