- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 456 for Porter (0.16 sec)
-
docs/de/docs/tutorial/bigger-applications.md
Wir importieren das Submodul `items` direkt, anstatt nur seine Variable `router` zu importieren. Das liegt daran, dass wir im Submodul `users` auch eine weitere Variable namens `router` haben. Wenn wir eine nach der anderen importiert hätten, etwa: ```Python from .routers.items import router from .routers.users import router ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 20:27:59 GMT 2024 - 21.1K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/execution/ReactorManager.java
private String failureBehavior = FAIL_FAST; private final ProjectSorter sorter; private Map<String, BuildSuccess> buildSuccessesByProject = new HashMap<>(); public ReactorManager(List<MavenProject> projects) throws CycleDetectedException, DuplicateProjectException { this.sorter = new ProjectSorter(projects); }
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Fri Sep 22 06:02:04 GMT 2023 - 5.6K bytes - Viewed (0) -
tests/test_infer_param_optionality.py
@item_router.get("/{item_id}") def get_item(item_id: str, user_id: Optional[str] = None): if user_id is None: return {"item_id": item_id} else: return {"item_id": item_id, "user_id": user_id} app.include_router(user_router, prefix="/users") app.include_router(item_router, prefix="/items") app.include_router(item_router, prefix="/users/{user_id}/items")
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 13.3K bytes - Viewed (0) -
docs_src/bigger_applications/app_an_py39/routers/items.py
from ..dependencies import get_token_header router = APIRouter( prefix="/items", tags=["items"], dependencies=[Depends(get_token_header)], responses={404: {"description": "Not found"}}, ) fake_items_db = {"plumbus": {"name": "Plumbus"}, "gun": {"name": "Portal Gun"}} @router.get("/") async def read_items(): return fake_items_db @router.get("/{item_id}") async def read_item(item_id: str):
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 1011 bytes - Viewed (0) -
tests/test_router_events.py
@sub_router.on_event("shutdown") def sub_router_shutdown() -> None: state.sub_router_shutdown = True router.include_router(sub_router) app.include_router(router) assert state.app_startup is False assert state.router_startup is False assert state.sub_router_startup is False assert state.app_shutdown is False assert state.router_shutdown is False assert state.sub_router_shutdown is False
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Wed Oct 18 12:36:40 GMT 2023 - 3.2K bytes - Viewed (0) -
tests/test_empty_router.py
import pytest from fastapi import APIRouter, FastAPI from fastapi.exceptions import FastAPIError from fastapi.testclient import TestClient app = FastAPI() router = APIRouter() @router.get("") def get_empty(): return ["OK"] app.include_router(router, prefix="/prefix") client = TestClient(app) def test_use_empty(): with client: response = client.get("/prefix")
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sun Jun 11 22:37:34 GMT 2023 - 805 bytes - Viewed (0) -
tests/test_sub_callbacks.py
ok: bool invoices_callback_router = APIRouter() @invoices_callback_router.post( "{$callback_url}/invoices/{$request.body.id}", response_model=InvoiceEventReceived ) def invoice_notification(body: InvoiceEvent): pass # pragma: nocover class Event(BaseModel): name: str total: float events_callback_router = APIRouter()
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 13.8K bytes - Viewed (0) -
cni/pkg/nodeagent/healthServer_test.go
"istio.io/istio/cni/pkg/constants" "istio.io/istio/pkg/test/util/assert" ) func TestServer(t *testing.T) { router := http.NewServeMux() installReady, watchReady := initRouter(router) assert.Equal(t, installReady.Load(), false) assert.Equal(t, watchReady.Load(), false) server := httptest.NewServer(router) defer server.Close() makeReq(t, server.URL, constants.LivenessEndpoint, http.StatusOK)
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Jan 26 20:34:28 GMT 2024 - 2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/http/ne.css
color: #000000; background-color: #d0d0d0; border-top-color: #ffffff; border-bottom-color: #707070; border-right-color: #707070; border-left-color: #ffffff; border-style: solid solid; border-top-width: 1px; border-bottom-width: 2px; border-right-width: 2px; border-left-width: 1px; } a:visited { color: #333897; }
CSS - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Fri Mar 22 20:39:42 GMT 2019 - 1.5K bytes - Viewed (0) -
docs_src/bigger_applications/app/internal/admin.py
from fastapi import APIRouter router = APIRouter() @router.post("/") async def update_admin():
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sun Nov 29 17:32:18 GMT 2020 - 147 bytes - Viewed (0)