- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 275 for ptrval (0.07 sec)
-
docs_src/response_model/tutorial003_04.py
from fastapi.responses import RedirectResponse app = FastAPI() @app.get("/portal") async def get_portal(teleport: bool = False) -> Union[Response, dict]: if teleport: return RedirectResponse(url="https://www.youtube.com/watch?v=dQw4w9WgXcQ")
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Tue Jan 10 16:22:47 UTC 2023 - 384 bytes - Viewed (0) -
docs_src/path_operation_advanced_configuration/tutorial005.py
from fastapi import FastAPI app = FastAPI() @app.get("/items/", openapi_extra={"x-aperture-labs-portal": "blue"}) async def read_items():
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Jul 29 20:01:13 UTC 2021 - 180 bytes - Viewed (0) -
pkg/volume/iscsi/iscsi_test.go
t.Errorf("Expected true for mounter.IsReadOnly") } } func TestPortalMounter(t *testing.T) { if portal := portalMounter("127.0.0.1"); portal != "127.0.0.1:3260" { t.Errorf("wrong portal: %s", portal) } if portal := portalMounter("127.0.0.1:3260"); portal != "127.0.0.1:3260" { t.Errorf("wrong portal: %s", portal) } } type testcase struct { name string defaultNs string spec *volume.Spec
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 01 15:56:32 UTC 2022 - 16.4K bytes - Viewed (0) -
pkg/apis/extensions/v1beta1/conversion.go
return err } if len(in.ServiceName) > 0 || in.ServicePort.IntVal != 0 || in.ServicePort.StrVal != "" || in.ServicePort.Type == intstr.String { out.Service = &networking.IngressServiceBackend{} out.Service.Name = in.ServiceName out.Service.Port.Name = in.ServicePort.StrVal out.Service.Port.Number = in.ServicePort.IntVal } return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 07:16:15 UTC 2023 - 8.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/types/typeutil/map.go
// memo, but it would require detecting whether types are 'tainted' by // references to type parameters. memo: make(map[types.Type]uint32), // Re-using ptrMap ensures that pointer identity is preserved in this // hasher. ptrMap: h.ptrMap, sigTParams: tparams, } } for i := 0; i < tparams.Len(); i++ { tparam := tparams.At(i) hash += 7 * h.Hash(tparam.Constraint()) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 13.9K bytes - Viewed (0) -
docs_src/response_model/tutorial003_04_py310.py
from fastapi.responses import RedirectResponse app = FastAPI() @app.get("/portal") async def get_portal(teleport: bool = False) -> Response | dict: if teleport: return RedirectResponse(url="https://www.youtube.com/watch?v=dQw4w9WgXcQ")
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Tue Jan 10 16:22:47 UTC 2023 - 352 bytes - Viewed (0) -
docs_src/response_model/tutorial003_02.py
from fastapi.responses import JSONResponse, RedirectResponse app = FastAPI() @app.get("/portal") async def get_portal(teleport: bool = False) -> Response: if teleport: return RedirectResponse(url="https://www.youtube.com/watch?v=dQw4w9WgXcQ")
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Tue Jan 10 16:22:47 UTC 2023 - 381 bytes - Viewed (0) -
docs_src/dependencies/tutorial008d.py
raise @app.get("/items/{item_id}") def get_item(item_id: str, username: str = Depends(get_username)): if item_id == "portal-gun": raise InternalError( f"The portal gun is too dangerous to be owned by {username}" ) if item_id != "plumbus": raise HTTPException(
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Feb 24 23:06:37 UTC 2024 - 694 bytes - Viewed (0) -
docs_src/dependencies/tutorial008d_an.py
raise @app.get("/items/{item_id}") def get_item(item_id: str, username: Annotated[str, Depends(get_username)]): if item_id == "portal-gun": raise InternalError( f"The portal gun is too dangerous to be owned by {username}" ) if item_id != "plumbus": raise HTTPException(
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Feb 24 23:06:37 UTC 2024 - 744 bytes - Viewed (0) -
pkg/util/iptables/save_restore_test.go
-A KUBE-PORTALS-CONTAINER -d 10.247.0.10 -p udp -m comment --comment "portal for kube-system/kube-dns:dns" -m state --state NEW -m udp --dport 53 -j KUBE-SVC-6666666666666666
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 19 01:20:51 UTC 2023 - 5K bytes - Viewed (0)