- Sort Score
- Num 10 results
- Language All
Results 81 - 90 of 1,125 for header3 (0.04 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
docs/recipes.md
When writing request headers, use `header(name, value)` to set the only occurrence of `name` to `value`. If there are existing values, they will be removed before the new value is added. Use `addHeader(name, value)` to add a header without removing the headers already present.
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat Aug 30 17:01:12 GMT 2025 - 47.8K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Response.kt
value: String, ) = apply { headers.add(name, value) } /** Removes all headers named [name] on this builder. */ open fun removeHeader(name: String) = apply { headers.removeAll(name) } /** Removes all headers on this builder and adds [headers]. */ open fun headers(headers: Headers) = apply { this.headers = headers.newBuilder() }Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Mon Jul 28 14:39:28 GMT 2025 - 18.1K bytes - Click Count (0) -
tests/test_query_cookie_header_model_extra_params.py
from fastapi import Cookie, FastAPI, Header, Query from fastapi.testclient import TestClient from pydantic import BaseModel app = FastAPI() class Model(BaseModel): param: str model_config = {"extra": "allow"} @app.get("/query") async def query_model_with_extra(data: Model = Query()): return data @app.get("/header") async def header_model_with_extra(data: Model = Header()): return data
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 2.3K bytes - Click Count (0) -
cmd/handler-utils_test.go
} } } // Tests validate metadata extraction from http headers. func TestExtractMetadataHeaders(t *testing.T) { testCases := []struct { header http.Header metadata map[string]string shouldFail bool }{ // Validate if there a known 'content-type'. { header: http.Header{ "Content-Type": []string{"image/png"}, }, metadata: map[string]string{
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Wed Apr 09 14:28:39 GMT 2025 - 6.1K bytes - Click Count (0) -
internal/crypto/sse-c.go
// String returns the SSE domain as string. For SSE-C the // domain is "SSE-C". func (ssec) String() string { return "SSE-C" } // IsRequested returns true if the HTTP headers contains // at least one SSE-C header. SSE-C copy headers are ignored. func (ssec) IsRequested(h http.Header) bool { if _, ok := h[xhttp.AmzServerSideEncryptionCustomerAlgorithm]; ok { return true } if _, ok := h[xhttp.AmzServerSideEncryptionCustomerKey]; ok {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 5.2K bytes - Click Count (0) -
tests/test_tutorial/test_header_params/test_tutorial001.py
return client @pytest.mark.parametrize( "path,headers,expected_status,expected_response", [ ("/items", None, 200, {"User-Agent": "testclient"}), ("/items", {"X-Header": "notvalid"}, 200, {"User-Agent": "testclient"}), ("/items", {"User-Agent": "FastAPI test"}, 200, {"User-Agent": "FastAPI test"}), ], ) def test(path, headers, expected_status, expected_response, client: TestClient):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 3.9K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-HeadersCommon.kt
} } return null } internal fun Headers.Builder.commonAdd( name: String, value: String, ) = apply { headersCheckName(name) headersCheckValue(value, name) commonAddLenient(name, value) } internal fun Headers.Builder.commonAddAll(headers: Headers) = apply { for (i in 0 until headers.size) { commonAddLenient(headers.name(i), headers.value(i)) } }
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Mon May 05 16:01:00 GMT 2025 - 5.8K bytes - Click Count (0) -
cmd/api-response_test.go
rw := httptest.NewRecorder() trw := &trackingResponseWriter{ResponseWriter: rw} if headersAlreadyWritten(trw) { t.Fatal("headers have not been written yet") } trw.WriteHeader(123) if !headersAlreadyWritten(trw) { t.Fatal("headers were written") } } func TestHeadersAlreadyWrittenWrapped(t *testing.T) { rw := httptest.NewRecorder()
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Oct 24 04:05:19 GMT 2025 - 5.8K bytes - Click Count (0) -
cmd/bucket-object-lock.go
// enforceRetentionBypassForDelete enforces whether an existing object under governance can be deleted // with governance bypass headers set in the request. // Objects under site wide WORM can never be overwritten. // For objects in "Governance" mode, overwrite is allowed if a) object retention date is past OR // governance bypass headers are set and user has governance bypass permissions.
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 08 02:38:25 GMT 2025 - 13.3K bytes - Click Count (0) -
docs_src/header_param_models/tutorial003_py310.py
from fastapi import FastAPI, Header from pydantic import BaseModel app = FastAPI() class CommonHeaders(BaseModel): host: str save_data: bool if_modified_since: str | None = None traceparent: str | None = None x_tag: list[str] = [] @app.get("/items/") async def read_items(headers: CommonHeaders = Header(convert_underscores=False)):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sun Mar 23 20:48:54 GMT 2025 - 377 bytes - Click Count (0)