- Sort Score
- Num 10 results
- Language All
Results 61 - 70 of 1,379 for header3 (0.03 seconds)
-
tests/test_request_params/test_header/test_optional_str.py
client = TestClient(app) response = client.get(path, headers={"p": "hello"}) assert response.status_code == 200 assert response.json() == {"p": "hello"} # ===================================================================================== # Alias @app.get("/optional-alias") async def read_optional_alias( p: Annotated[Optional[str], Header(alias="p_alias")] = None, ): return {"p": p}
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 8.2K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/service/RequestHeaderService.java
/** * Retrieves a specific request header by its ID. * * @param id the unique identifier of the request header * @return an OptionalEntity containing the request header if found, empty otherwise */ public OptionalEntity<RequestHeader> getRequestHeader(final String id) { return requestHeaderBhv.selectByPK(id); } /** * Stores a request header configuration to the database.Created: Sat Dec 20 09:19:18 GMT 2025 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 5.2K bytes - Click Count (0) -
tests/test_request_params/test_header/test_list.py
"loc": ["header", "p"], "msg": "Field required", "input": AnyThing, } ] } @pytest.mark.parametrize( "path", ["/required-list-str", "/model-required-list-str"], ) def test_required_list_str(path: str): client = TestClient(app) response = client.get(path, headers=[("p", "hello"), ("p", "world")])
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:31:34 GMT 2025 - 11K bytes - Click Count (0) -
android/guava/src/com/google/common/net/HttpHeaders.java
/** The HTTP {@code Access-Control-Request-Headers} header field name. */ public static final String ACCESS_CONTROL_REQUEST_HEADERS = "Access-Control-Request-Headers"; /** The HTTP {@code Access-Control-Request-Method} header field name. */ public static final String ACCESS_CONTROL_REQUEST_METHOD = "Access-Control-Request-Method"; /** The HTTP {@code Authorization} header field name. */Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Mar 27 20:37:16 GMT 2025 - 35.4K bytes - Click Count (0) -
tests/test_tutorial/test_dependencies/test_tutorial012.py
def test_get_invalid_one_header_items(client: TestClient): response = client.get("/items/", headers={"X-Token": "invalid"}) assert response.status_code == 400, response.text assert response.json() == {"detail": "X-Token header invalid"} def test_get_invalid_one_users(client: TestClient): response = client.get("/users/", headers={"X-Token": "invalid"}) assert response.status_code == 400, response.text
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 7.7K bytes - Click Count (0) -
src/archive/tar/reader_test.go
for i, hdr := range hdrs { if i >= len(v.headers) { t.Fatalf("entry %d: unexpected header:\ngot %+v", i, *hdr) } if !reflect.DeepEqual(*hdr, *v.headers[i]) { t.Fatalf("entry %d: incorrect header:\ngot %+v\nwant %+v", i, *hdr, *v.headers[i]) } } if len(hdrs) != len(v.headers) { t.Fatalf("got %d headers, want %d headers", len(hdrs), len(v.headers)) } for i, sum := range chksums {Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Mon Dec 15 16:34:13 GMT 2025 - 47.5K bytes - Click Count (0) -
tests/test_tutorial/test_bigger_applications/test_main.py
response = client.get("/items?token=jessica", headers={"X-Token": "invalid"}) assert response.status_code == 400 assert response.json() == {"detail": "X-Token header invalid"} def test_items_bar_with_invalid_token(client: TestClient): response = client.get("/items/bar?token=jessica", headers={"X-Token": "invalid"}) assert response.status_code == 400
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 21.3K bytes - Click Count (0) -
cmd/object-api-options_test.go
ctx := t.Context() testCases := []struct { name string headers http.Header wantObjectAttrs map[string]struct{} }{ { name: "empty header", headers: http.Header{}, wantObjectAttrs: map[string]struct{}{}, }, { name: "single header line", headers: http.Header{ xhttp.AmzObjectAttributes: []string{"test1,test2"}, },
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Wed Apr 09 14:28:39 GMT 2025 - 2.4K bytes - Click Count (0) -
internal/handlers/proxy_test.go
} for _, v := range headers { req := &http.Request{ Header: http.Header{ v.key: []string{v.val}, }, } res := GetSourceIP(req) if res != v.expected { t.Errorf("wrong header for %s: got %s want %s", v.key, res, v.expected) } } } func TestXFFDisabled(t *testing.T) { req := &http.Request{ Header: http.Header{ xForwardedFor: []string{"8.8.8.8"},Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Wed Feb 26 19:25:49 GMT 2025 - 3.9K bytes - Click Count (0) -
cmd/object-api-options.go
) func getDefaultOpts(header http.Header, copySource bool, metadata map[string]string) (opts ObjectOptions, err error) { var clientKey [32]byte var sse encrypt.ServerSide opts = ObjectOptions{UserDefined: metadata} if v, ok := header[xhttp.MinIOSourceProxyRequest]; ok { opts.ProxyHeaderSet = true opts.ProxyRequest = strings.Join(v, "") == "true" } if _, ok := header[xhttp.MinIOSourceReplicationRequest]; ok {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 14.3K bytes - Click Count (0)