- Sort Score
- Result 10 results
- Languages All
Results 311 - 320 of 1,223 for headers (0.06 sec)
-
docs/en/docs/tutorial/middleware.md
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.2K bytes - Viewed (0) -
tests/test_tutorial/test_response_model/test_tutorial003_05.py
def test_get_redirect(): response = client.get("/portal", params={"teleport": True}, follow_redirects=False) assert response.status_code == 307, response.text assert response.headers["location"] == "https://www.youtube.com/watch?v=dQw4w9WgXcQ" def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200, response.text assert response.json() == {
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 3.4K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/AccessHeaders.java
if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); System.out.println("Server: " + response.header("Server")); System.out.println("Date: " + response.header("Date")); System.out.println("Vary: " + response.headers("Vary")); } } public static void main(String... args) throws Exception { new AccessHeaders().run(); }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun May 22 01:29:42 UTC 2016 - 1.6K bytes - Viewed (0) -
cmd/generic-handlers.go
// Make sure we remove any existing headers before // proxying the request to another node. for k := range w.Header() { w.Header().Del(k) } globalForwarder.ServeHTTP(w, r) return } h.ServeHTTP(w, r) }) } // addCustomHeadersMiddleware adds various HTTP(S) response headers. // Security Headers enable various security protections behaviors in the client's browser.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jul 29 18:10:04 UTC 2024 - 20.5K bytes - Viewed (0) -
tests/test_security_http_base.py
return {"scheme": credentials.scheme, "credentials": credentials.credentials} client = TestClient(app) def test_security_http_base(): response = client.get("/users/me", headers={"Authorization": "Other foobar"}) assert response.status_code == 200, response.text assert response.json() == {"scheme": "Other", "credentials": "foobar"} def test_security_http_base_no_credentials():
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 1.7K bytes - Viewed (0) -
tests/test_security_http_base_description.py
return {"scheme": credentials.scheme, "credentials": credentials.credentials} client = TestClient(app) def test_security_http_base(): response = client.get("/users/me", headers={"Authorization": "Other foobar"}) assert response.status_code == 200, response.text assert response.json() == {"scheme": "Other", "credentials": "foobar"} def test_security_http_base_no_credentials():
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 1.9K bytes - Viewed (0) -
buildscripts/upgrade-tests/nginx.conf
server minio4:9000; } # main minio server { listen 9000; listen [::]:9000; server_name localhost; # To allow special characters in headers ignore_invalid_headers off; # Allow any size file to be uploaded. # Set to a value such as 1000m; to restrict file size to a specific value client_max_body_size 0;
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Nov 21 18:41:30 UTC 2021 - 1.7K bytes - Viewed (0) -
cmd/api-router.go
} // Set of s3 handler options as bit flags. type s3HFlag uint8 const ( // when provided, disables Gzip compression. noGZS3HFlag = 1 << iota // when provided, enables only tracing of headers. Otherwise, both headers // and body are traced. traceHdrsS3HFlag // when provided, disables throttling via the `maxClients` middleware. noThrottleS3HFlag ) func (h s3HFlag) has(flag s3HFlag) bool {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Aug 13 15:25:16 UTC 2024 - 23.1K bytes - Viewed (0) -
docs/en/docs/tutorial/handling-errors.md
/// ## Add custom headers There are some situations in where it's useful to be able to add custom headers to the HTTP error. For example, for some types of security. You probably won't need to use it directly in your code. But in case you needed it for an advanced scenario, you can add custom headers: ```Python hl_lines="14" {!../../docs_src/handling_errors/tutorial002.py!}
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.1K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/ResponseJvmTest.kt
response.trailers() } } @Test fun worksIfTrailersSet() { val response = newResponse("".toResponseBody()) { trailers { Headers.headersOf("a", "b") } } assertThat(response.trailers()["a"]).isEqualTo("b") } @Test fun peekAfterReadingResponse() { val response = newResponse(responseBody("abc"))
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 3.1K bytes - Viewed (0)