- Sort Score
- Num 10 results
- Language All
Results 531 - 540 of 3,731 for get2 (0.04 seconds)
-
tests/test_request_params/test_query/test_required_str.py
app = FastAPI() # ===================================================================================== # Without aliases @app.get("/required-str") async def read_required_str(p: str): return {"p": p} class QueryModelRequiredStr(BaseModel): p: str @app.get("/model-required-str") async def read_model_required_str(p: Annotated[QueryModelRequiredStr, Query()]): return {"p": p.p}
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 10.2K bytes - Click Count (0) -
tests/test_security_oauth2_authorization_code_bearer_scopes_openapi.py
app = FastAPI(dependencies=[Depends(get_token)]) @app.get("/") async def root(): return {"message": "Hello World"} @app.get( "/with-oauth2-scheme", dependencies=[Security(oauth2_scheme, scopes=["read", "write"])], ) async def read_with_oauth2_scheme(): return {"message": "Admin Access"} @app.get( "/with-get-token", dependencies=[Security(get_token, scopes=["read", "write"])] )
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 6.6K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/rdma/RdmaBufferManager.java
*/ public long getTotalAllocated() { return totalAllocated.get(); } /** * Get total number of regions released * * @return total released regions */ public long getTotalReleased() { return totalReleased.get(); } /** * Get number of currently active regions * * @return active regions (allocated - released) */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 05:11:12 GMT 2025 - 8.7K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/BaseParser.java
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 10 07:39:11 GMT 2025 - 25.5K bytes - Click Count (0) -
tests/test_param_include_in_schema.py
from fastapi.testclient import TestClient from inline_snapshot import snapshot app = FastAPI() @app.get("/hidden_cookie") async def hidden_cookie( hidden_cookie: str | None = Cookie(default=None, include_in_schema=False), ): return {"hidden_cookie": hidden_cookie} @app.get("/hidden_header") async def hidden_header( hidden_header: str | None = Header(default=None, include_in_schema=False), ):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 8.6K bytes - Click Count (0) -
tests/test_dependency_after_yield_streaming.py
app = FastAPI() @app.get("/data") def get_data(session: SessionDep) -> Any: data = list(session) return data @app.get("/stream-simple") def get_stream_simple(session: SessionDep) -> Any: def iter_data(): yield from ["x", "y", "z"] return StreamingResponse(iter_data()) @app.get("/stream-session") def get_stream_session(session: SessionDep) -> Any:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 3.2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/cors/CorsHandlerFactoryTest.java
corsHandlerFactory.add(origin3, handler3); // Verify assertEquals(handler1, corsHandlerFactory.get(origin1)); assertEquals(handler2, corsHandlerFactory.get(origin2)); assertEquals(handler3, corsHandlerFactory.get(origin3)); } @Test public void test_get_wildcardOrigin() { // Setup
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 9.3K bytes - Click Count (0) -
src/test/java/org/codelibs/curl/io/IOIntegrationTest.java
assertNotNull(threadName.get()); // The async execution should have run on a ForkJoinPool thread, not the main thread assertTrue("Should run on ForkJoinPool thread: " + threadName.get(), threadName.get().contains("ForkJoinPool") || !threadName.get().equals(Thread.currentThread().getName())); pool.shutdown(); }
Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 12:00:34 GMT 2026 - 44.1K bytes - Click Count (0) -
tests/test_request_params/test_query/test_optional_list.py
# Without aliases @app.get("/optional-list-str") async def read_optional_list_str( p: Annotated[list[str] | None, Query()] = None, ): return {"p": p} class QueryModelOptionalListStr(BaseModel): p: list[str] | None = None @app.get("/model-optional-list-str") async def read_model_optional_list_str(Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 9.4K bytes - Click Count (0) -
tests/test_security_http_base_optional.py
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(): response = client.get("/users/me") 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 - 2K bytes - Click Count (0)