Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 64 for Reaber (0.08 sec)

  1. okhttp/src/test/java/okhttp3/HeadersTest.kt

        assertFailsWith<IllegalArgumentException> {
          Headers.Builder().add("héader1", "value1")
        }.also { expected ->
          assertThat(expected.message)
            .isEqualTo("Unexpected char 0xe9 at 1 in header name: héader1")
        }
      }
    
      @Test fun builderRejectsUnicodeInHeaderValue() {
        assertFailsWith<IllegalArgumentException> {
          Headers.Builder().add("header1", "valué1")
        }.also { expected ->
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/Protocol.kt

       *
       * [rfc_7230]: https://tools.ietf.org/html/rfc7230
       */
      HTTP_1_1("http/1.1"),
    
      /**
       * Chromium's binary-framed protocol that includes header compression, multiplexing multiple
       * requests on the same socket, and server-push. HTTP/1.1 semantics are layered on SPDY/3.
       *
       * Current versions of OkHttp do not support this protocol.
       */
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 06 04:17:33 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. okhttp-sse/src/main/kotlin/okhttp3/sse/EventSources.kt

      @JvmStatic
      fun createFactory(callFactory: Call.Factory): EventSource.Factory {
        return EventSource.Factory { request, listener ->
          val actualRequest =
            if (request.header("Accept") == null) {
              request.newBuilder().addHeader("Accept", "text/event-stream").build()
            } else {
              request
            }
    
          RealEventSource(actualRequest, listener).apply {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 06 04:18:15 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/authenticator/JavaNetAuthenticator.kt

            val credential =
              Credentials.basic(
                auth.userName,
                String(auth.password),
                challenge.charset,
              )
            return request.newBuilder()
              .header(credentialHeader, credential)
              .build()
          }
        }
    
        return null // No challenges were satisfied!
      }
    
      @Throws(IOException::class)
      private fun Proxy.connectToInetAddress(
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/MediaType.kt

        level = DeprecationLevel.ERROR,
      )
      fun subtype(): String = subtype
    
      /**
       * Returns the encoded media type, like "text/plain; charset=utf-8", appropriate for use in a
       * Content-Type header.
       */
      override fun toString(): String = commonToString()
    
      override fun equals(other: Any?): Boolean = commonEquals(other)
    
      override fun hashCode(): Int = commonHashCode()
    
      companion object {
        /**
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/HeadersJvmTest.kt

          Headers.Builder()
            .addUnsafeNonAscii("héader1", "value1")
            .build()
        }.also { expected ->
          assertThat(expected.message).isEqualTo("Unexpected char 0xe9 at 1 in header name: héader1")
        }
      }
    
      @Test fun addUnsafeNonAsciiAcceptsUnicodeValue() {
        val headers =
          Headers.Builder()
            .addUnsafeNonAscii("header1", "valué1")
            .build()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  7. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/KotlinSourceModernTest.kt

        var requestLine: String = recordedRequest.requestLine
        var method: String? = recordedRequest.method
        var path: String? = recordedRequest.path
        var headers: Headers = recordedRequest.headers
        val header: String? = recordedRequest.getHeader("")
        var chunkSizes: List<Int> = recordedRequest.chunkSizes
        var bodySize: Long = recordedRequest.bodySize
        var body: Buffer = recordedRequest.body
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/connection/Exchange.kt

        eventListener.responseHeadersEnd(call, response)
      }
    
      @Throws(IOException::class)
      fun openResponseBody(response: Response): ResponseBody {
        try {
          val contentType = response.header("Content-Type")
          val contentLength = codec.reportedContentLength(response)
          val rawSource = codec.openResponseBodySource(response)
          val source = ResponseBodySource(rawSource, contentLength)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/http/BridgeInterceptor.kt

          transparentGzip = true
          requestBuilder.header("Accept-Encoding", "gzip")
        }
    
        val cookies = cookieJar.loadForRequest(userRequest.url)
        if (cookies.isNotEmpty()) {
          requestBuilder.header("Cookie", cookieHeader(cookies))
        }
    
        if (userRequest.header("User-Agent") == null) {
          requestBuilder.header("User-Agent", USER_AGENT)
        }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/internal/authenticator/JavaNetAuthenticatorTest.kt

            .request(request)
            .code(401)
            .header("WWW-Authenticate", "Basic realm=\"User Visible Realm\"")
            .protocol(HTTP_2)
            .message("Unauthorized")
            .build()
        val authRequest = authenticator.authenticate(route, response)
    
        assertEquals(
          "Basic ${RecordingAuthenticator.BASE_64_CREDENTIALS}",
          authRequest!!.header("Authorization"),
        )
      }
    
      @Test
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.7K bytes
    - Viewed (0)
Back to top