- Sort Score
- Num 10 results
- Language All
Results 591 - 600 of 1,433 for most (0.01 seconds)
-
cmd/erasure-sets.go
defer wg.Done() lk.Lock() // Only add lockers only one per endpoint and per erasure set. if locker, ok := erasureLockers[endpoint.Host]; ok && !lockerEpSet.Contains(endpoint.Host) { lockerEpSet.Add(endpoint.Host) s.erasureLockers[i] = append(s.erasureLockers[i], locker) } lk.Unlock() }(i, endpoints.Endpoints[i*setDriveCount+j]) } } wg.Wait()
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 37K bytes - Click Count (1) -
tests/test_no_schema_split.py
@app.post("/messages", response_model=Message) async def create_message(input_message: str) -> Message: return Message( input=input_message, output=MessageOutput(body=f"Processed: {input_message}"), ) client = TestClient(app) def test_create_message(): response = client.post("/messages", params={"input_message": "Hello"})Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 6.4K bytes - Click Count (0) -
tests/test_tutorial/test_path_operation_configurations/test_tutorial001.py
mod = importlib.import_module( f"docs_src.path_operation_configuration.{request.param}" ) return TestClient(mod.app) def test_post_items(client: TestClient): response = client.post( "/items/", json={ "name": "Foo", "description": "Item description", "price": 42.0, "tax": 3.2, "tags": ["bar", "baz"], },
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 6.2K bytes - Click Count (0) -
.github/workflows/mint/nginx-1-node.conf
client_max_body_size 0; # To disable buffering proxy_buffering off; proxy_request_buffering off; location / { proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme;Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Mar 31 21:38:10 GMT 2023 - 2.8K bytes - Click Count (1) -
docs/uk/docs/tutorial/debugging.md
```console $ python myapp.py ``` </div> тоді внутрішня змінна `__name__`, яка створюється автоматично Python, матиме значення `"__main__"`. Отже, цей блок коду: ```Python uvicorn.run(app, host="0.0.0.0", port=8000) ``` буде виконаний. --- Це не станеться, якщо Ви імпортуєте цей модуль (файл). Якщо у Вас є інший файл, наприклад `importer.py`, з наступним кодом: ```Python
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Feb 28 14:24:45 GMT 2025 - 3.6K bytes - Click Count (0) -
.github/workflows/mint/nginx-8-node.conf
client_max_body_size 0; # To disable buffering proxy_buffering off; proxy_request_buffering off; location / { proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme;Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Wed May 15 16:52:29 GMT 2024 - 3.4K bytes - Click Count (0) -
docs_src/request_files/tutorial001_02_py310.py
from fastapi import FastAPI, File, UploadFile app = FastAPI() @app.post("/files/") async def create_file(file: bytes | None = File(default=None)): if not file: return {"message": "No file sent"} else: return {"file_size": len(file)} @app.post("/uploadfile/") async def create_upload_file(file: UploadFile | None = None): if not file: return {"message": "No upload file sent"} else:
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri May 13 23:38:22 GMT 2022 - 470 bytes - Click Count (0) -
tests/test_tutorial/test_security/test_tutorial004.py
data = {"username": username, "password": password} response = client.post("/token", data=data) content = response.json() access_token = content.get("access_token") return access_token def test_login(mod: ModuleType): client = TestClient(mod.app) response = client.post("/token", data={"username": "johndoe", "password": "secret"}) assert response.status_code == 200, response.textCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 13.3K bytes - Click Count (0) -
cmd/api-response_test.go
{ request: &http.Request{ Host: "127.0.0.1:9000", Header: map[string][]string{ "X-Forwarded-Scheme": {httpScheme}, }, }, bucket: "testbucket1", object: "test/1.txt", expectedLocation: "http://127.0.0.1:9000/testbucket1/test/1.txt", }, { request: &http.Request{ Host: "127.0.0.1:9000", Header: map[string][]string{Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Oct 24 04:05:19 GMT 2025 - 5.8K bytes - Click Count (0) -
tests/test_tutorial/test_generate_clients/test_tutorial003.py
client = TestClient(app) def test_post_items(): response = client.post("/items/", json={"name": "Foo", "price": 5}) assert response.status_code == 200, response.text assert response.json() == {"message": "Item received"} def test_post_users(): response = client.post( "/users/", json={"username": "Foo", "email": "******@****.***"} )
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 7.1K bytes - Click Count (0)