Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 53 for status (0.18 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/http/HttpHeaders.kt

      val cookies = Cookie.parseAll(url, headers)
      if (cookies.isEmpty()) return
    
      saveFromResponse(url, cookies)
    }
    
    /**
     * Returns true if the response headers and status indicate that this response has a (possibly
     * 0-length) body. See RFC 7231.
     */
    fun Response.promisesBody(): Boolean {
      // HEAD requests never yield a body regardless of the response headers.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/http/RequestLine.kt

     */
    package okhttp3.internal.http
    
    import java.net.HttpURLConnection
    import java.net.Proxy
    import okhttp3.HttpUrl
    import okhttp3.Request
    
    object RequestLine {
      /**
       * Returns the request status line, like "GET / HTTP/1.1". This is exposed to the application by
       * [HttpURLConnection.getHeaderFields], so it needs to be set even if the transport is
       * HTTP/2.
       */
      fun get(
        request: Request,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/CallTest.kt

        server.enqueue(
          MockResponse.Builder()
            .status("HTP/1.1 200 OK")
            .build(),
        )
        executeSynchronously("/")
          .assertFailure("Unexpected status line: HTP/1.1 200 OK")
      }
    
      @Test
      fun serverSendsInvalidCodeTooLarge() {
        server.enqueue(
          MockResponse.Builder()
            .status("HTTP/1.1 2147483648 OK")
            .build(),
        )
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http/HttpStatusCodes.kt

     * individuals on behalf of the Apache Software Foundation.  For more
     * information on the Apache Software Foundation, please see
     * <http://www.apache.org/>.
     */
    
    package okhttp3.internal.http
    
    // HTTP Status Codes not offered by HttpUrlConnection.
    //
    // https://datatracker.ietf.org/doc/html/rfc7231#page-47
    //
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/HeadersRequestTest.kt

    import org.junit.jupiter.api.Test
    
    class HeadersRequestTest {
      @Test fun readNameValueBlockDropsForbiddenHeadersHttp2() {
        val headerBlock =
          headersOf(
            ":status",
            "200 OK",
            ":version",
            "HTTP/1.1",
            "connection",
            "close",
          )
        val request = Request.Builder().url("http://square.com/").build()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  6. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/DeprecationBridge.kt

      }
    
      val body = getBody()
      if (body != null) result.body(body)
    
      for (pushPromise in pushPromises) {
        result.addPush(pushPromise.wrap())
      }
    
      result.settings(settings)
      result.status = status
      result.headers(headers)
      result.trailers(trailers)
      result.socketPolicy =
        when (socketPolicy) {
          SocketPolicy.EXPECT_CONTINUE, SocketPolicy.CONTINUE_ALWAYS -> {
            result.add100Continue()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/http/CallServerInterceptor.kt

        code: Int,
        exchange: Exchange,
      ): Boolean =
        when {
          // Server sent a 100-continue even though we did not request one. Try again to read the
          // actual response status.
          code == 100 -> true
    
          // Handle Processing (102) & Early Hints (103) and any new codes without failing
          // 100 and 101 are the exceptions with different meanings
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.3K bytes
    - Viewed (1)
  8. okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketProtocol.kt

      /** Used when an unchecked exception was thrown in a listener. */
      internal const val CLOSE_CLIENT_GOING_AWAY = 1001
    
      /** Used when an empty close frame was received (i.e., without a status code). */
      internal const val CLOSE_NO_STATUS_CODE = 1005
    
      fun toggleMask(
        cursor: Buffer.UnsafeCursor,
        key: ByteArray,
      ) {
        var keyIndex = 0
        val keyLength = key.size
        do {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  9. docs/contribute/code_of_conduct.md

    Although this list cannot be exhaustive, we explicitly honor diversity in age, culture, ethnicity,
    gender identity or expression, language, national origin, political beliefs, profession, race,
    religion, sexual orientation, socioeconomic status, and technical ability. We will not tolerate
    discrimination based on any of the protected characteristics above, including participants with
    disabilities.
    
    Reporting Issues
    ----------------
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 5.1K bytes
    - Viewed (0)
  10. samples/compare/src/test/kotlin/okhttp3/compare/JettyHttpClientTest.kt

        val request =
          client.newRequest(server.url("/").toUri())
            .header("Accept", "text/plain")
        val response = request.send()
        assertThat(response.status).isEqualTo(200)
        assertThat(response.contentAsString).isEqualTo("hello, Jetty HTTP Client")
    
        val recorded = server.takeRequest()
        assertThat(recorded.headers["Accept"]).isEqualTo("text/plain")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2K bytes
    - Viewed (0)
Back to top