Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 452 for rheaders (0.35 sec)

  1. samples/guide/src/main/java/okhttp3/recipes/kt/AsynchronousGet.kt

              call: Call,
              response: Response,
            ) {
              response.use {
                if (!response.isSuccessful) throw IOException("Unexpected code $response")
    
                for ((name, value) in response.headers) {
                  println("$name: $value")
                }
    
                println(response.body.string())
              }
            }
          },
        )
      }
    }
    
    fun main() {
      AsynchronousGet().run()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  2. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerHeader.kt

      /** Identifies which member in the ASN.1 schema the field holds. */
      var tag: Long,
      /**
       * If the constructed bit is set it indicates that the value is composed of other values that have
       * their own headers.
       *
       * This value is encoded in bit 6 of the first byte of each value.
       *
       * ```
       * 0bxx0xxxxx Primitive
       * 0bxx1xxxxx Constructed
       * ```
       */
      var constructed: Boolean,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/RealWebSocketTest.kt

        client.listener.assertTextMessage(message)
      }
    
      @Test
      fun messagesCompressedWhenConfigured() {
        val headers = headersOf("Sec-WebSocket-Extensions", "permessage-deflate")
        client.initWebSocket(random, responseHeaders = headers)
        server.initWebSocket(random, responseHeaders = headers)
        val message = repeat('a', RealWebSocket.DEFAULT_MINIMUM_DEFLATE_SIZE.toInt())
        server.webSocket!!.send(message)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 18.7K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/BaseTestHandler.kt

      override fun data(
        inFinished: Boolean,
        streamId: Int,
        source: BufferedSource,
        length: Int,
      ) {
        fail("")
      }
    
      override fun headers(
        inFinished: Boolean,
        streamId: Int,
        associatedStreamId: Int,
        headerBlock: List<Header>,
      ) {
        fail("")
      }
    
      override fun rstStream(
        streamId: Int,
        errorCode: ErrorCode,
      ) {
        fail("")
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/io/package-info.java

     * or implied. See the License for the specific language governing permissions and limitations under
     * the License.
     */
    
    /**
     * Utility methods and classes for I/O; for example input streams, output streams, readers, writers,
     * and files.
     *
     * <p>At the core of this package are the Source/Sink types: {@link ByteSource ByteSource}, {@link
     * CharSource CharSource}, {@link ByteSink ByteSink} and {@link CharSink CharSink}. They are
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  6. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

      }
    
      @Test
      fun headersPostWithHeaderOverrides() {
        setLevel(Level.HEADERS)
        extraNetworkInterceptor =
          Interceptor { chain: Interceptor.Chain ->
            chain.proceed(
              chain
                .request()
                .newBuilder()
                .header("Content-Length", "2")
                .header("Content-Type", "text/plain-ish")
                .build(),
            )
          }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Aug 21 14:27:04 UTC 2025
    - 37.5K bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt

          Request
            .Builder()
            .url(route.address.url)
            .method("CONNECT", null)
            .header("Host", route.address.url.toHostHeader(includeDefaultPort = true))
            .header("Proxy-Connection", "Keep-Alive") // For HTTP/1.0 proxies like Squid.
            .header("User-Agent", USER_AGENT)
            .build()
    
        val fakeAuthChallengeResponse =
          Response
            .Builder()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 23:28:25 UTC 2025
    - 12K bytes
    - Viewed (0)
  8. README.md

    =====
    
    A simple cURL-like Java HTTP client.
    
    ## Features
    
    - Fluent API for building HTTP requests (GET, POST, PUT, DELETE, HEAD, OPTIONS, CONNECT, TRACE)
    - Support for query parameters, headers, body (String or stream), compression, SSL configuration, proxies, and timeouts
    - Automatic in-memory or on-disk caching of request/response bodies
    - Synchronous and asynchronous (callback) execution
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Sat Jul 05 01:11:14 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/Exchange.kt

     * limitations under the License.
     */
    package okhttp3.internal.connection
    
    import java.io.IOException
    import java.net.ProtocolException
    import okhttp3.EventListener
    import okhttp3.Headers
    import okhttp3.Request
    import okhttp3.Response
    import okhttp3.ResponseBody
    import okhttp3.internal.http.ExchangeCodec
    import okhttp3.internal.http.RealResponseBody
    import okio.Buffer
    import okio.ForwardingSink
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jul 29 22:04:11 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  10. maven-tests/src/main/java/com/squareup/okhttp3/maventest/SampleHttpClient.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.squareup.okhttp3.maventest;
    
    import java.io.IOException;
    
    import okhttp3.Headers;
    import okhttp3.HttpUrl;
    import okhttp3.OkHttpClient;
    import okhttp3.Request;
    import okhttp3.Response;
    
    public class SampleHttpClient {
      private final OkHttpClient client;
    
      public SampleHttpClient() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jul 12 12:05:57 UTC 2025
    - 1.1K bytes
    - Viewed (0)
Back to top