- Sort Score
- Result 10 results
- Languages All
Results 331 - 340 of 643 for vhost2 (0.11 sec)
-
docs_src/header_param_models/tutorial002_pv1_py39.py
from typing import Union from fastapi import FastAPI, Header from pydantic import BaseModel app = FastAPI() class CommonHeaders(BaseModel): class Config: extra = "forbid" host: str save_data: bool if_modified_since: Union[str, None] = None traceparent: Union[str, None] = None x_tag: list[str] = [] @app.get("/items/") async def read_items(headers: CommonHeaders = Header()):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Sep 17 18:54:10 UTC 2024 - 434 bytes - Viewed (0) -
docs_src/header_param_models/tutorial002_an_py39.py
from typing import Annotated, Union from fastapi import FastAPI, Header from pydantic import BaseModel app = FastAPI() class CommonHeaders(BaseModel): model_config = {"extra": "forbid"} host: str save_data: bool if_modified_since: Union[str, None] = None traceparent: Union[str, None] = None x_tag: list[str] = [] @app.get("/items/")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Sep 17 18:54:10 UTC 2024 - 451 bytes - Viewed (0) -
docs_src/header_param_models/tutorial001_an.py
from typing import List, Union from fastapi import FastAPI, Header from pydantic import BaseModel from typing_extensions import Annotated app = FastAPI() class CommonHeaders(BaseModel): host: str save_data: bool if_modified_since: Union[str, None] = None traceparent: Union[str, None] = None x_tag: List[str] = [] @app.get("/items/") async def read_items(headers: Annotated[CommonHeaders, Header()]):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Sep 17 18:54:10 UTC 2024 - 446 bytes - Viewed (0) -
docs_src/header_param_models/tutorial002_pv1_an_py39.py
from typing import Annotated, Union from fastapi import FastAPI, Header from pydantic import BaseModel app = FastAPI() class CommonHeaders(BaseModel): class Config: extra = "forbid" host: str save_data: bool if_modified_since: Union[str, None] = None traceparent: Union[str, None] = None x_tag: list[str] = [] @app.get("/items/")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Sep 17 18:54:10 UTC 2024 - 455 bytes - Viewed (0) -
docs_src/header_param_models/tutorial002_pv1_an.py
from fastapi import FastAPI, Header from pydantic import BaseModel from typing_extensions import Annotated app = FastAPI() class CommonHeaders(BaseModel): class Config: extra = "forbid" host: str save_data: bool if_modified_since: Union[str, None] = None traceparent: Union[str, None] = None x_tag: List[str] = [] @app.get("/items/")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Sep 17 18:54:10 UTC 2024 - 490 bytes - Viewed (0) -
docs/en/docs/advanced/middleware.md
{* ../../docs_src/advanced_middleware/tutorial001.py hl[2,6] *} ## `TrustedHostMiddleware` Enforces that all incoming requests have a correctly set `Host` header, in order to guard against HTTP Host Header attacks. {* ../../docs_src/advanced_middleware/tutorial002.py hl[2,6:8] *} The following arguments are supported:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 27 16:45:50 UTC 2024 - 4K bytes - Viewed (0) -
docs/em/docs/deployment/server-workers.md
```Python import uvicorn.workers.UvicornWorker ``` * `--bind`: ๐ ๐ฌ ๐ ๐ข & โด ๐, โ๏ธ โค (`:`) ๐ ๐ข & โด. * ๐ฅ ๐ ๐โโ Uvicorn ๐, โฉ๏ธ `--bind 0.0.0.0:80` (๐ ๐) ๐ ๐ โ๏ธ `--host 0.0.0.0` & `--port 80`. ๐ข, ๐ ๐ช ๐ ๐ โซ๏ธ ๐ฆ **๐น** (๐ ๏ธ ๐) ๐ ๐ ๏ธ (โซ๏ธ ๐ข). ๐ ๐ช ๐ ๐: * ๐ **๐ ๏ธ ๐จโ๐ผ** โถ๏ธ โฎ๏ธ ๐น `19499` (๐ ๐ผ โซ๏ธ ๐ ๐ ๐ข). * โคด๏ธ โซ๏ธ โถ๏ธ `Listening at: http://0.0.0.0:80`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Aug 06 04:48:30 UTC 2024 - 8.2K bytes - Viewed (0) -
internal/event/target/webhook.go
store: queueStore, cancel: cancel, cancelCh: ctx.Done(), } // Calculate the webhook addr with the port number format target.addr = args.Endpoint.Host if _, _, err := net.SplitHostPort(args.Endpoint.Host); err != nil && strings.Contains(err.Error(), "missing port in address") { switch strings.ToLower(args.Endpoint.Scheme) { case "http": target.addr += ":80" case "https":
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Sep 06 23:06:30 UTC 2024 - 8.8K bytes - Viewed (0) -
cmd/bucket-replication.go
// in front of MinIO. func checkRemoteEndpoint(ctx context.Context, epURL *url.URL) error { reqURL := &url.URL{ Scheme: epURL.Scheme, Host: epURL.Host, Path: healthCheckPathPrefix + healthCheckReadinessPath, } req, err := http.NewRequestWithContext(ctx, http.MethodGet, reqURL.String(), nil) if err != nil { return err }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Oct 10 06:49:55 UTC 2024 - 116.1K bytes - Viewed (0) -
cmd/admin-server-info.go
if r != nil { addr = r.Host } if globalIsDistErasure { addr = globalLocalNodeName } poolNumbers := make(map[int]struct{}) network := make(map[string]string) for _, ep := range endpointServerPools { for _, endpoint := range ep.Endpoints { if endpoint.IsLocal { poolNumbers[endpoint.PoolIdx+1] = struct{}{} } nodeName := endpoint.Host if nodeName == "" { nodeName = addr
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 4.9K bytes - Viewed (0)