Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 29 of 29 for requestFile (0.2 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2ExchangeCodec.kt

    import okhttp3.internal.http.ExchangeCodec
    import okhttp3.internal.http.ExchangeCodec.Carrier
    import okhttp3.internal.http.HTTP_CONTINUE
    import okhttp3.internal.http.RealInterceptorChain
    import okhttp3.internal.http.RequestLine
    import okhttp3.internal.http.StatusLine
    import okhttp3.internal.http.promisesBody
    import okhttp3.internal.http2.Header.Companion.RESPONSE_STATUS_UTF8
    import okhttp3.internal.http2.Header.Companion.TARGET_AUTHORITY
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/CallTest.kt

        assertThat(response.body.string()).isEqualTo("Page 2")
        val page1 = server.takeRequest()
        assertThat(page1.requestLine).isEqualTo("POST /page1 HTTP/1.1")
        assertThat(page1.body.readUtf8()).isEqualTo("Request Body")
        val page2 = server.takeRequest()
        assertThat(page2.requestLine).isEqualTo("GET /page2 HTTP/1.1")
      }
    
      @Test
      fun getClientRequestTimeout() {
        server.enqueue(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
  3. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

              pushedHeaders.add(Header(name, value))
            }
            val requestLine = "${pushPromise.method} ${pushPromise.path} HTTP/1.1"
            val chunkSizes = emptyList<Int>() // No chunked encoding for HTTP/2.
            requestQueue.add(
              RecordedRequest(
                requestLine = requestLine,
                headers = pushPromise.headers,
                chunkSizes = chunkSizes,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  4. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

        assertThat(reader.readLine()).isEqualTo("This is the new location!")
        val first = server.takeRequest()
        assertThat(first.requestLine).isEqualTo("GET / HTTP/1.1")
        val redirect = server.takeRequest()
        assertThat(redirect.requestLine).isEqualTo("GET /new-path HTTP/1.1")
      }
    
      /**
       * Test that MockWebServer blocks for a call to enqueue() if a request is made before a mock
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  5. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

        assertThat(reader.readLine()).isEqualTo("This is the new location!")
        val first = server.takeRequest()
        assertThat(first.requestLine).isEqualTo("GET / HTTP/1.1")
        val redirect = server.takeRequest()
        assertThat(redirect.requestLine).isEqualTo("GET /new-path HTTP/1.1")
      }
    
      /**
       * Test that MockWebServer blocks for a call to enqueue() if a request is made before a mock
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt

      private fun createTunnel(): Request? {
        var nextRequest = tunnelRequest!!
        // Make an SSL Tunnel on the first message pair of each SSL + proxy connection.
        val url = route.address.url
        val requestLine = "CONNECT ${url.toHostHeader(includeDefaultPort = true)} HTTP/1.1"
        while (true) {
          val source = this.source!!
          val sink = this.sink!!
          val tunnelCodec =
            Http1ExchangeCodec(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/CacheTest.kt

        val response1 = client.newCall(request1).execute()
        assertThat(response1.body.string()).isEqualTo("ABC")
        val recordedRequest1 = server.takeRequest()
        assertThat(recordedRequest1.requestLine).isEqualTo("GET /foo HTTP/1.1")
        assertThat(recordedRequest1.sequenceNumber).isEqualTo(0)
        val request2 = Request.Builder().url(server.url("/bar")).build()
        val response2 = client.newCall(request2).execute()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 108.6K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

            0,
            Socket(),
          )
        recordedRequest = RecordedRequest("", headersOf(), listOf(), 0L, Buffer(), 0, Socket())
        var requestUrl: HttpUrl? = recordedRequest.requestUrl
        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("")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  9. docs/en/docs/release-notes.md

    ### Translations
    
    * 🌐 Add Portuguese translation for `docs/pt/docs/tutorial/request_file.md`. PR [#12018](https://github.com/fastapi/fastapi/pull/12018) by [@Joao-Pedro-P-Holanda](https://github.com/Joao-Pedro-P-Holanda).
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Nov 01 11:25:57 UTC 2024
    - 460.3K bytes
    - Viewed (0)
Back to top