- Sort Score
- Num 10 results
- Language All
Results 701 - 710 of 1,338 for responder (0.07 seconds)
-
docs_src/additional_responses/tutorial002_py39.py
from typing import Union from fastapi import FastAPI from fastapi.responses import FileResponse from pydantic import BaseModel class Item(BaseModel): id: str value: str app = FastAPI() @app.get( "/items/{item_id}", response_model=Item, responses={ 200: { "content": {"image/png": {}}, "description": "Return the JSON item or an image.", } },
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 628 bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/persistent/DurableHandleV2Response.java
import jcifs.internal.smb2.create.CreateContextResponse; import jcifs.internal.util.SMBUtil; /** * SMB2 Durable Handle V2 Response Create Context * * MS-SMB2 Section 2.2.14.2.4 */ public class DurableHandleV2Response implements CreateContextResponse { /** * Context name for durable handle V2 response */ public static final String CONTEXT_NAME = "DH2Q";Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 21 04:51:33 GMT 2025 - 3K bytes - Click Count (0) -
tests/test_request_params/test_cookie/test_required_str.py
"/model-required-alias", ], ) def test_required_alias_by_alias(path: str): client = TestClient(app) client.cookies.set("p_alias", "hello") response = client.get(path) assert response.status_code == 200, response.text assert response.json() == {"p": "hello"} # ===================================================================================== # Validation aliasCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 10.2K bytes - Click Count (0) -
tests/test_request_params/test_file/test_required.py
"/required-uploadfile-alias", ], ) def test_required_alias_by_alias(path: str): client = TestClient(app) response = client.post(path, files=[("p_alias", b"hello")]) assert response.status_code == 200, response.text assert response.json() == {"file_size": 5} # ===================================================================================== # Validation aliasCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 10.8K bytes - Click Count (0) -
tests/test_request_params/test_query/test_optional_str.py
client = TestClient(app) response = client.get(path) assert response.status_code == 200 assert response.json() == {"p": None} @pytest.mark.parametrize( "path", ["/optional-str", "/model-optional-str"], ) def test_optional_str(path: str): client = TestClient(app) response = client.get(f"{path}?p=hello") assert response.status_code == 200
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 8.1K bytes - Click Count (0) -
docs_src/app_testing/tutorial003_py39.py
@app.get("/items/{item_id}") async def read_items(item_id: str): return items[item_id] def test_read_items(): with TestClient(app) as client: response = client.get("/items/foo") assert response.status_code == 200
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 528 bytes - Click Count (0) -
tests/test_request_params/test_form/test_list.py
["/required-list-alias", "/model-required-list-alias"], ) def test_required_list_alias_by_alias(path: str): client = TestClient(app) response = client.post(path, data={"p_alias": ["hello", "world"]}) assert response.status_code == 200, response.text assert response.json() == {"p": ["hello", "world"]} # ===================================================================================== # Validation alias
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:31:34 GMT 2025 - 11.7K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/rank/fusion/SearchResult.java
*/ public boolean isPartialResults() { return partialResults; } /** * Gets the facet response containing aggregated facet information. * * @return The facet response, or null if no facets were requested */ public FacetResponse getFacetResponse() { return facetResponse; } /**Created: Sat Dec 20 09:19:18 GMT 2025 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 8.8K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/base/login/ActionResponseCredential.java
*/ package org.codelibs.fess.app.web.base.login; import java.util.function.Supplier; import org.lastaflute.web.login.credential.LoginCredential; import org.lastaflute.web.response.ActionResponse; /** * The credential for action response. */ public class ActionResponseCredential implements LoginCredential { private final Supplier<ActionResponse> action; /** * Constructor.Created: Sat Dec 20 09:19:18 GMT 2025 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 1.3K bytes - Click Count (0) -
docs_src/app_testing/app_b_an_py310/test_main.py
assert response.json() == {"detail": "Invalid X-Token header"} def test_read_nonexistent_item(): response = client.get("/items/baz", headers={"X-Token": "coneofsilence"}) assert response.status_code == 404 assert response.json() == {"detail": "Item not found"} def test_create_item(): response = client.post( "/items/", headers={"X-Token": "coneofsilence"},
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Thu Aug 15 22:31:16 GMT 2024 - 1.8K bytes - Click Count (0)