- Sort Score
- Result 10 results
- Languages All
Results 761 - 770 of 1,942 for client (0.13 sec)
-
tests/test_tutorial/test_response_model/test_tutorial004.py
"tax": 10.5, "tags": [], }, ), ], ) def test_get(url, data): response = client.get(url) assert response.status_code == 200, response.text assert response.json() == data def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200, response.text assert response.json() == { "openapi": "3.1.0",
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Aug 04 20:47:07 UTC 2023 - 5K bytes - Viewed (0) -
tests/test_tutorial/test_settings/test_tutorial001_pv1.py
@needs_pydanticv1 def test_settings(monkeypatch: MonkeyPatch): monkeypatch.setenv("ADMIN_EMAIL", "******@****.***") from docs_src.settings.tutorial001_pv1 import app client = TestClient(app) response = client.get("/info") assert response.status_code == 200, response.text assert response.json() == { "app_name": "Awesome API", "admin_email": "******@****.***",
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 556 bytes - Viewed (0) -
istioctl/pkg/describe/describe.go
klabels "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/kubernetes" apiannotation "istio.io/api/annotation" "istio.io/api/label" meshconfig "istio.io/api/mesh/v1alpha1" "istio.io/api/networking/v1alpha3" typev1beta1 "istio.io/api/type/v1beta1" clientnetworking "istio.io/client-go/pkg/apis/networking/v1" istioclient "istio.io/client-go/pkg/clientset/versioned" "istio.io/istio/istioctl/pkg/cli"
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Oct 24 17:36:49 UTC 2024 - 50.6K bytes - Viewed (0) -
docs/en/docs/tutorial/response-status-code.md
* A special case is `204`, "No Content". This response is used when there is no content to return to the client, and so the response must not have a body. * **`300`** and above are for "Redirection". Responses with these status codes may or may not have a body, except for `304`, "Not Modified", which must not have one. * **`400`** and above are for "Client error" responses. These are the second type you would probably use the most.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon Oct 28 11:13:18 UTC 2024 - 3.9K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/request/popularwords/PopularWordsRequest.java
this.queryFreqThreshold = queryFreqThreshold; } @Override protected void processRequest(final Client client, final Deferred<PopularWordsResponse> deferred) { final SearchRequestBuilder builder = client.prepareSearch(index); builder.setSize(size); builder.setQuery(buildQuery()); builder.setRescorer(buildRescore(), windowSize);
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Sat Oct 12 00:10:39 UTC 2024 - 7K bytes - Viewed (0) -
docs_src/app_testing/tutorial003.py
items["bar"] = {"name": "Tenders"} @app.get("/items/{item_id}") async def read_items(item_id: str): return items[item_id] def test_read_items(): with TestClient(app) as client: response = client.get("/items/foo") assert response.status_code == 200
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Mar 26 19:09:53 UTC 2020 - 528 bytes - Viewed (0) -
tests/test_router_prefix_with_template.py
@router.get("/users/{id}") def read_user(segment: str, id: str): return {"segment": segment, "id": id} app.include_router(router, prefix="/{segment}") client = TestClient(app) def test_get(): response = client.get("/seg/users/foo") assert response.status_code == 200, response.text
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Apr 08 04:37:38 UTC 2020 - 484 bytes - Viewed (0) -
tests/test_param_in_path_and_dependency.py
@app.get("/users/{user_id}", dependencies=[Depends(user_exists)]) async def read_users(user_id: int): pass client = TestClient(app) def test_read_users(): response = client.get("/users/42") assert response.status_code == 200, response.text def test_openapi_schema(): response = client.get("/openapi.json") data = response.json() assert data == { "openapi": "3.1.0",
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 3.1K bytes - Viewed (0) -
tests/test_tutorial/test_configure_swagger_ui/test_tutorial003.py
from fastapi.testclient import TestClient from docs_src.configure_swagger_ui.tutorial003 import app client = TestClient(app) def test_swagger_ui(): response = client.get("/docs") assert response.status_code == 200, response.text assert ( '"deepLinking": false,' in response.text ), "overridden configs should be preserved" assert ( '"deepLinking": true' not in response.text
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Aug 19 19:54:04 UTC 2023 - 1.5K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/PostStreaming.java
import okio.BufferedSink; public final class PostStreaming { public static final MediaType MEDIA_TYPE_MARKDOWN = MediaType.get("text/x-markdown; charset=utf-8"); private final OkHttpClient client = new OkHttpClient(); public void run() throws Exception { RequestBody requestBody = new RequestBody() { @Override public MediaType contentType() { return MEDIA_TYPE_MARKDOWN; }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Fri Jul 06 03:18:15 UTC 2018 - 2.1K bytes - Viewed (0)