- Sort Score
- Result 10 results
- Languages All
Results 141 - 150 of 1,948 for clientY (0.09 sec)
-
tests/test_default_response_class.py
with client: response = client.get("/a/override") assert response.content == b"Hello A" assert response.headers["content-type"] == text_type def test_router_a_a(): with client: response = client.get("/a/a") assert response.json() == {"msg": "Hello A A"} assert response.headers["content-type"] == orjson_type def test_router_a_a_override(): with client:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Mar 01 20:49:20 UTC 2020 - 5.2K bytes - Viewed (0) -
tests/test_tutorial/test_bigger_applications/test_main.py
import pytest from dirty_equals import IsDict from fastapi.testclient import TestClient @pytest.fixture(name="client") def get_client(): from docs_src.bigger_applications.app.main import app client = TestClient(app) return client def test_users_token_jessica(client: TestClient): response = client.get("/users?token=jessica") assert response.status_code == 200
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 24.6K bytes - Viewed (0) -
manifests/charts/base/files/crd-all.gen.yaml
Controls which mode of metrics generation is selected: `CLIENT`, `SERVER`, or `CLIENT_AND_SERVER`. Valid Options: CLIENT_AND_SERVER, CLIENT, SERVER enum: - CLIENT_AND_SERVER - CLIENT - SERVER type: string
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Nov 01 16:23:52 UTC 2024 - 805K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/client/AbstractCrawlerClientTest.java
}; ResponseData responseData = new ResponseData(); responseData.setUrl("http://test.com/"); client.setMaxContentLength(1000000L); client.checkMaxContentLength(responseData); responseData.setContentLength(-1); client.checkMaxContentLength(responseData); responseData.setContentLength(1000L); client.checkMaxContentLength(responseData);
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 3K bytes - Viewed (0) -
cmd/etcd.go
} func saveKeyEtcd(ctx context.Context, client *etcd.Client, key string, data []byte, opts ...options) error { timeoutCtx, cancel := context.WithTimeout(ctx, defaultContextTimeout) defer cancel() if len(opts) > 0 { return saveKeyEtcdWithTTL(ctx, client, key, data, opts[0].ttl) } _, err := client.Put(timeoutCtx, key, string(data)) etcdLogIf(ctx, err) return etcdErrToErr(err, client.Endpoints()) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Apr 04 12:04:40 UTC 2024 - 2.9K bytes - Viewed (0) -
tests/test_query.py
def test_query_param(): response = client.get("/query/param") assert response.status_code == 200 assert response.json() == "foo bar" def test_query_param_query_50(): response = client.get("/query/param?query=50") assert response.status_code == 200 assert response.json() == "foo bar 50" def test_query_param_required(): response = client.get("/query/param-required")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 21:56:59 UTC 2024 - 11.4K bytes - Viewed (0) -
docs/bucket/notifications/README.md
client = mqtt.Client(client_id="myclientid",clean_session=False) client.on_connect = on_connect client.on_message = on_message client.connect("localhost",1883,60) client.loop_forever() ``` Execute this example python program to watch for MQTT events on the console. ```py python mqtt.py ``` Open another terminal and upload a JPEG image into `images` bucket. ```
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 84K bytes - Viewed (0) -
android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt
val request = Request.Builder().url(server.url("/")).build() client.newCall(request).execute().use { response -> assertEquals(200, response.code) } client.connectionPool.evictAll() assertEquals(0, client.connectionPool.connectionCount()) client.newCall(request).execute().use { response -> assertEquals(200, response.code) }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 27K bytes - Viewed (0) -
okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DohProviders.kt
} @JvmStatic fun providers( client: OkHttpClient, http2Only: Boolean, workingOnly: Boolean, getOnly: Boolean, ): List<DnsOverHttps> { return buildList { add(buildGoogle(client)) if (!getOnly) { add(buildGooglePost(client)) } add(buildCloudflare(client)) add(buildCloudflareIp(client)) if (!getOnly) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Dec 23 10:26:25 UTC 2023 - 3.8K bytes - Viewed (0) -
tests/test_tutorial/test_request_form_models/test_tutorial002_an_py39.py
from tests.utils import needs_py39, needs_pydanticv2 @pytest.fixture(name="client") def get_client(): from docs_src.request_form_models.tutorial002_an_py39 import app client = TestClient(app) return client @needs_pydanticv2 @needs_py39 def test_post_body_form(client: TestClient): response = client.post("/login/", data={"username": "Foo", "password": "secret"}) assert response.status_code == 200
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Sep 06 17:31:18 UTC 2024 - 6.3K bytes - Viewed (0)