Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 48 of 48 for status (0.14 sec)

  1. 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,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2ExchangeCodec.kt

            val value = headerBlock.value(i)
            if (name == RESPONSE_STATUS_UTF8) {
              statusLine = StatusLine.parse("HTTP/1.1 $value")
            } else if (name !in HTTP_2_SKIPPED_RESPONSE_HEADERS) {
              headersBuilder.addLenient(name, value)
            }
          }
          if (statusLine == null) throw ProtocolException("Expected ':status' header not present")
    
          return Response.Builder()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/ResponseCommonTest.kt

      }
    
      @Test fun negativeStatusCodeThrowsIllegalStateException() {
        assertFailsWith<IllegalStateException> {
          newResponse(responseBody("set status code -1"), -1)
        }
      }
    
      @Test fun zeroStatusCodeIsValid() {
        val response = newResponse(responseBody("set status code 0"), 0)
        assertThat(response.code).isEqualTo(0)
      }
    
      @Test fun defaultResponseBodyIsEmpty() {
        val response =
          Response.Builder()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  4. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

          val expectedReason = reasons[i / 100]
          assertThat(builder.status).isEqualTo("HTTP/1.1 $i $expectedReason")
          assertThat(headersToList(builder)).containsExactly("Content-Length: 0")
        }
      }
    
      @Test
      fun setStatusControlsWholeStatusLine() {
        val builder = MockResponse.Builder().status("HTTP/1.1 202 That'll do pig")
        assertThat(headersToList(builder)).containsExactly("Content-Length: 0")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/WebSocket.kt

     * instances; usually this is [OkHttpClient].
     *
     * ## Web Socket Lifecycle
     *
     * Upon normal operation each web socket progresses through a sequence of states:
     *
     *  * **Connecting:** the initial state of each web socket. Messages may be enqueued but they won't
     *    be transmitted until the web socket is open.
     *
     *  * **Open:** the web socket has been accepted by the remote peer and is fully operational.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketWriter.kt

      @Throws(IOException::class)
      fun writePong(payload: ByteString) {
        writeControlFrame(OPCODE_CONTROL_PONG, payload)
      }
    
      /**
       * Send a close frame with optional code and reason.
       *
       * @param code Status code as defined by
       *     [Section 7.4 of RFC 6455](http://tools.ietf.org/html/rfc6455#section-7.4) or `0`.
       * @param reason Reason for shutting down or `null`.
       */
      @Throws(IOException::class)
      fun writeClose(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        peer.acceptFrame() // SYN_STREAM
        peer.acceptFrame() // PING
        peer.sendFrame()
          .headers(false, 3, headerEntries(Header.RESPONSE_STATUS_UTF8, "HTTP/1.1 100"))
        peer.sendFrame()
          .headers(false, 3, headerEntries(Header.RESPONSE_STATUS_UTF8, "HTTP/1.1 200"))
        peer.sendFrame().ping(true, Http2Connection.AWAIT_PING, 0)
        peer.play()
    
        // Play it back.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 75.4K bytes
    - Viewed (0)
  8. okhttp/src/test/resources/okhttp3/internal/publicsuffix/public_suffix_list.dat

    musician.io
    // Submitted by Matthias Merkel <******@****.***>
    novecore.site
    
    // staticland : https://static.land
    // Submitted by Seth Vincent <******@****.***>
    static.land
    dev.static.land
    sites.static.land
    
    // Storebase : https://www.storebase.io
    // Submitted by Tony Schirmer <******@****.***>
    storebase.store
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 240.3K bytes
    - Viewed (3)
Back to top