Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 762 for tenders (0.08 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt

        assertThat(request.headers[":scheme"]).isEqualTo(scheme)
        assertThat(request.headers[":authority"]).isEqualTo(
          server.hostName + ":" + server.port,
        )
        val pushedRequest = server.takeRequest()
        assertThat(pushedRequest.requestLine).isEqualTo("GET /foo/bar HTTP/2")
        assertThat(pushedRequest.headers["foo"]).isEqualTo("bar")
      }
    
      @Test
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Nov 01 12:18:11 UTC 2025
    - 67.4K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/RecordedResponse.kt

        }
    
      fun assertHeader(
        name: String,
        vararg values: String?,
      ) = apply {
        assertThat(response!!.headers(name)).containsExactly(*values)
      }
    
      fun assertHeaders(headers: Headers) =
        apply {
          assertThat(response!!.headers).isEqualTo(headers)
        }
    
      fun assertBody(expectedBody: String) =
        apply {
          assertThat(body).isEqualTo(expectedBody)
        }
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/SortedSetTestSuiteBuilder.java

    import com.google.common.collect.testing.features.CollectionFeature;
    import com.google.common.collect.testing.features.Feature;
    import com.google.common.collect.testing.testers.CollectionAddAllTester;
    import com.google.common.collect.testing.testers.CollectionAddTester;
    import com.google.common.collect.testing.testers.SortedSetNavigationTester;
    import java.lang.reflect.Method;
    import java.util.ArrayList;
    import java.util.Collection;
    import java.util.HashSet;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  4. tests/test_request_params/test_header/test_required_str.py

            ]
        }
    
    
    @pytest.mark.parametrize(
        "path",
        ["/required-str", "/model-required-str"],
    )
    def test_required_str(path: str):
        client = TestClient(app)
        response = client.get(path, headers={"p": "hello"})
        assert response.status_code == 200
        assert response.json() == {"p": "hello"}
    
    
    # =====================================================================================
    # Alias
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 10K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_custom_request_and_route/test_tutorial003.py

        assert response.json() == {"message": "Not timed"}
        assert "X-Response-Time" not in response.headers
    
    
    def test_get_timed(client: TestClient):
        response = client.get("/timed")
        assert response.json() == {"message": "It's the time of my life"}
        assert "X-Response-Time" in response.headers
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 894 bytes
    - Viewed (0)
  6. docs_src/custom_request_and_route/tutorial003_py310.py

                duration = time.time() - before
                response.headers["X-Response-Time"] = str(duration)
                print(f"route duration: {duration}")
                print(f"route response: {response}")
                print(f"route response headers: {response.headers}")
                return response
    
            return custom_route_handler
    
    
    app = FastAPI()
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 08:55:32 UTC 2025
    - 1K bytes
    - Viewed (0)
  7. samples/compare/src/test/kotlin/okhttp3/compare/JettyHttpClientTest.kt

        val recorded = server.takeRequest()
        assertThat(recorded.headers["Accept"]).isEqualTo("text/plain")
        assertThat(recorded.headers["Accept-Encoding"]).isEqualTo("gzip")
        assertThat(recorded.headers["Connection"]).isNull()
        assertThat(recorded.headers["User-Agent"]!!).matches(Regex("Jetty/.*"))
      }
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  8. docs_src/custom_request_and_route/tutorial003_py39.py

                duration = time.time() - before
                response.headers["X-Response-Time"] = str(duration)
                print(f"route duration: {duration}")
                print(f"route response: {response}")
                print(f"route response headers: {response.headers}")
                return response
    
            return custom_route_handler
    
    
    app = FastAPI()
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 1K bytes
    - Viewed (0)
  9. docs/features/interceptors.md

    }
    ```
    
    ### Rewriting Responses
    
    Symmetrically, interceptors can rewrite response headers and transform the response body. This is generally more dangerous than rewriting request headers because it may violate the webserver's expectations!
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 8.1K bytes
    - Viewed (0)
  10. mockwebserver/src/main/kotlin/mockwebserver3/PushPromise.kt

     * limitations under the License.
     */
    package mockwebserver3
    
    import okhttp3.Headers
    
    /** An HTTP request initiated by the server. */
    public class PushPromise(
      public val method: String,
      public val path: String,
      public val headers: Headers,
      public val response: MockResponse,
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Jun 14 16:09:26 UTC 2025
    - 849 bytes
    - Viewed (0)
Back to top