Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 161 - 170 of 818 for tenders (0.05 seconds)

  1. tests/test_security_http_basic_realm_description.py

        assert response.status_code == 401, response.text
        assert response.headers["WWW-Authenticate"] == 'Basic realm="simple"'
    
    
    def test_security_http_basic_invalid_credentials():
        response = client.get(
            "/users/me", headers={"Authorization": "Basic notabase64token"}
        )
        assert response.status_code == 401, response.text
        assert response.headers["WWW-Authenticate"] == 'Basic realm="simple"'
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 2.9K bytes
    - Click Count (0)
  2. tests/test_tutorial/test_advanced_middleware/test_tutorial003.py

    
    client = TestClient(app)
    
    
    def test_middleware():
        response = client.get("/large", headers={"accept-encoding": "gzip"})
        assert response.status_code == 200, response.text
        assert response.text == "x" * 4000
        assert response.headers["Content-Encoding"] == "gzip"
        assert int(response.headers["Content-Length"]) < 4000
        response = client.get("/")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 671 bytes
    - Click Count (0)
  3. CLAUDE.md

    - **`CurlRequest`**: Fluent request builder supporting query parameters, headers, body content, GZIP compression, SSL configuration, proxy settings, encoding, threshold, custom connection configuration, and async execution.
    
    - **`CurlResponse`**: Response wrapper implementing `Closeable`. Provides HTTP status code, headers, and content access methods.
    
    - **`CurlException`**: Unchecked RuntimeException for HTTP errors.
    
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Thu Jan 08 07:28:24 GMT 2026
    - 4.3K bytes
    - Click Count (0)
  4. docs/en/docs/advanced/behind-a-proxy.md

    * [X-Forwarded-Host](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Forwarded-Host)
    
    ///
    
    ### Enable Proxy Forwarded Headers { #enable-proxy-forwarded-headers }
    
    You can start FastAPI CLI with the *CLI Option* `--forwarded-allow-ips` and pass the IP addresses that should be trusted to read those forwarded headers.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 15.8K bytes
    - Click Count (0)
  5. fastapi/security/http.py

            return HTTPException(
                status_code=HTTP_401_UNAUTHORIZED,
                detail="Not authenticated",
                headers=self.make_authenticate_headers(),
            )
    
        async def __call__(self, request: Request) -> HTTPAuthorizationCredentials | None:
            authorization = request.headers.get("Authorization")
            scheme, credentials = get_authorization_scheme_param(authorization)
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Mar 16 10:16:48 GMT 2026
    - 13.1K bytes
    - Click Count (0)
  6. cmd/object-handlers-common.go

    	if objInfo.ModTime.IsZero() || objInfo.ModTime.Equal(time.Unix(0, 0)) {
    		return false
    	}
    
    	// Headers to be set of object content is not going to be written to the client.
    	writeHeaders := func() {
    		// set common headers
    		setCommonHeaders(w)
    
    		// set object-related metadata headers
    		w.Header().Set(xhttp.LastModified, objInfo.ModTime.UTC().Format(http.TimeFormat))
    
    		if objInfo.ETag != "" {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed Jul 23 12:36:06 GMT 2025
    - 15.2K bytes
    - Click Count (0)
  7. samples/guide/src/main/java/okhttp3/recipes/SynchronousGet.java

            .build();
    
        try (Response response = client.newCall(request).execute()) {
          if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
    
          Headers responseHeaders = response.headers();
          for (int i = 0; i < responseHeaders.size(); i++) {
            System.out.println(responseHeaders.name(i) + ": " + responseHeaders.value(i));
          }
    
          System.out.println(response.body().string());
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun May 22 01:29:42 GMT 2016
    - 1.5K bytes
    - Click Count (0)
  8. tests/test_security_oauth2_authorization_code_bearer.py

    
    def test_incorrect_token():
        response = client.get("/items", headers={"Authorization": "Non-existent testtoken"})
        assert response.status_code == 401, response.text
        assert response.json() == {"detail": "Not authenticated"}
    
    
    def test_token():
        response = client.get("/items", headers={"Authorization": "Bearer testtoken"})
        assert response.status_code == 200, response.text
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 2.7K bytes
    - Click Count (0)
  9. scripts/tests/test_translation_fixer/test_header_permalinks/test_header_number_mismatch.py

            "utf-8"
        )
    
        assert fixed_content == expected_content  # Translated doc remains unchanged
        assert "Error processing docs/lang/docs/doc.md" in result.output
        assert (
            "Number of headers with permalinks does not match the number "
            "in the original document (5 vs 4)"
        ) in result.output
    
    
    @pytest.mark.parametrize(
        "copy_test_files",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Jan 10 22:43:44 GMT 2026
    - 1.9K bytes
    - Click Count (0)
  10. docs/en/docs/deployment/https.md

    /// note | Technical Details
    
    The proxy headers are:
    
    * [X-Forwarded-For](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Forwarded-For)
    * [X-Forwarded-Proto](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Forwarded-Proto)
    * [X-Forwarded-Host](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Forwarded-Host)
    
    ///
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 14K bytes
    - Click Count (0)
Back to Top