Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 70 for Reaber (0.09 sec)

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

        server.enqueue(MockResponse(code = 204))
    
        val endpointUrl = server.url("/endpoint")
    
        var request =
          Request.Builder()
            .url(endpointUrl)
            .header("Content-Type", "application/xml")
            .put(ValidRequestBody())
            .build()
        client.newCall(request).execute().use {
          assertEquals(201, it.code)
        }
    
        request =
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/-RequestCommon.kt

      }
    
    fun Request.Builder.commonCacheControl(cacheControl: CacheControl): Request.Builder {
      val value = cacheControl.toString()
      return when {
        value.isEmpty() -> removeHeader("Cache-Control")
        else -> header("Cache-Control", value)
      }
    }
    
    fun Request.Builder.commonGet(): Request.Builder = method("GET", null)
    
    fun Request.Builder.commonHead(): Request.Builder = method("HEAD", null)
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. samples/crawler/src/main/java/okhttp3/sample/Crawler.java

              + ")") : "(cache)";
          int responseCode = response.code();
    
          System.out.printf("%03d: %s %s%n", responseCode, url, responseSource);
    
          String contentType = response.header("Content-Type");
          if (responseCode != 200 || contentType == null) {
            return;
          }
    
          MediaType mediaType = MediaType.parse(contentType);
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Aug 12 07:26:27 UTC 2021
    - 4.6K bytes
    - Viewed (0)
  4. okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceHttpTest.kt

        )
      }
    
      private fun newEventSource(accept: String? = null): EventSource {
        val builder =
          Request.Builder()
            .url(server.url("/"))
        if (accept != null) {
          builder.header("Accept", accept)
        }
        val request = builder.build()
        val factory = createFactory(client)
        return factory.newEventSource(request, listener)
      }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Jan 14 10:20:09 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/MultipartReader.kt

     * part is particularly large or if the underlying source is particularly slow, the [nextPart] call
     * may be slow!
     *
     * Closing a part **does not** close this multipart reader; callers must explicitly close this with
     * [close].
     *
     * [rfc_2046]: http://www.ietf.org/rfc/rfc2046.txt
     */
    class MultipartReader
      @Throws(IOException::class)
      constructor(
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/http2/Header.kt

     * limitations under the License.
     */
    package okhttp3.internal.http2
    
    import okio.ByteString
    import okio.ByteString.Companion.encodeUtf8
    
    /** HTTP header: the name is an ASCII string, but the value can be UTF-8. */
    data class Header(
      /** Name in case-insensitive ASCII encoding. */
      @JvmField val name: ByteString,
      /** Value in UTF-8 encoding. */
      @JvmField val value: ByteString,
    ) {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2ExchangeCodec.kt

    import okhttp3.internal.http.promisesBody
    import okhttp3.internal.http2.Header.Companion.RESPONSE_STATUS_UTF8
    import okhttp3.internal.http2.Header.Companion.TARGET_AUTHORITY
    import okhttp3.internal.http2.Header.Companion.TARGET_AUTHORITY_UTF8
    import okhttp3.internal.http2.Header.Companion.TARGET_METHOD
    import okhttp3.internal.http2.Header.Companion.TARGET_METHOD_UTF8
    import okhttp3.internal.http2.Header.Companion.TARGET_PATH
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  8. mockwebserver/src/test/java/mockwebserver3/internal/http2/Http2Server.kt

        }
      }
    
      private fun send404(
        stream: Http2Stream,
        path: String,
      ) {
        val responseHeaders =
          listOf(
            Header(":status", "404"),
            Header(":version", "HTTP/1.1"),
            Header("content-type", "text/plain"),
          )
        stream.writeHeaders(
          responseHeaders = responseHeaders,
          outFinished = false,
          flushHeaders = false,
        )
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketExtensions.kt

          // Parse each header.
          for (i in 0 until responseHeaders.size) {
            if (!responseHeaders.name(i).equals(HEADER_WEB_SOCKET_EXTENSION, ignoreCase = true)) {
              continue // Not a header we're interested in.
            }
            val header = responseHeaders.value(i)
    
            // Parse each extension.
            var pos = 0
            while (pos < header.length) {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  10. okhttp-hpacktests/src/test/java/okhttp3/internal/http2/hpackjson/Case.kt

      val wire: ByteString? = null,
      val headers: List<Map<String, String>>,
    ) : Cloneable {
      val headersList: List<Header>
        get() {
          val result = mutableListOf<Header>()
          for (inputHeader in headers) {
            val (key, value) = inputHeader.entries.iterator().next()
            result.add(Header(key, value))
          }
          return result
        }
    
      public override fun clone() = Case(seqno, this.wire, headers)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Dec 23 10:26:25 UTC 2023
    - 1.3K bytes
    - Viewed (0)
Back to top