- Sort Score
- Num 10 results
- Language All
Results 811 - 820 of 1,918 for fluent (0.07 seconds)
-
docs_src/app_testing/tutorial001_py39.py
from fastapi import FastAPI from fastapi.testclient import TestClient app = FastAPI() @app.get("/") async def read_main(): return {"msg": "Hello World"} client = TestClient(app) def test_read_main(): response = client.get("/") assert response.status_code == 200
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 334 bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/LoggingInterceptors.java
private final OkHttpClient client = new OkHttpClient.Builder() .addInterceptor(new LoggingInterceptor()) .build(); public void run() throws Exception { Request request = new Request.Builder() .url("https://publicobject.com/helloworld.txt") .build(); Response response = client.newCall(request).execute(); response.body().close(); }
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Jan 01 15:55:32 GMT 2016 - 2K bytes - Click Count (0) -
compat/maven-resolver-provider/src/site/apt/dependency-types.apt
*-----------------------+---------------+------------+-----------+-----------------------+-----------------------+ | <<<ejb-client>>> | <<<client>>> | <<<jar>>> | java | classes | | *-----------------------+---------------+------------+-----------+-----------------------+-----------------------+
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 5.7K bytes - Click Count (0) -
tests/test_request_params/test_path/test_required_str.py
), pytest.param( "/required-alias-and-validation-alias", id="required-alias-and-validation-alias", ), ], ) def test_success(path: str): client = TestClient(app) response = client.get(f"{path}/hello") assert response.status_code == 200, response.textCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 2.3K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/AutobahnTester.kt
* [Autobahn Testsuite](http://autobahn.ws/testsuite/). */ class AutobahnTester { val client = OkHttpClient() private fun newWebSocket( path: String, listener: WebSocketListener, ): WebSocket { val request = Request .Builder() .url(HOST + path) .build() return client.newWebSocket(request, listener) } fun run() { try {Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 4.6K bytes - Click Count (0) -
android-test-app/src/main/kotlin/okhttp/android/testapp/MainActivity.kt
override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) val client = OkHttpClient() // Ensure we are compiling against the right variant println(AndroidPlatform.isSupported) val url = "https://github.com/square/okhttp".toHttpUrl() println(url.topPrivateDomain()) client.newCall(Request(url)).enqueue( object : Callback { override fun onFailure(
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Aug 19 08:10:39 GMT 2025 - 1.7K bytes - Click Count (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/Authentication.java
* governing permissions and limitations under the License. */ package org.codelibs.fess.crawler.client.http; import org.apache.http.auth.AuthScheme; import org.apache.http.auth.AuthScope; import org.apache.http.auth.Credentials; /** * The Authentication interface provides methods to retrieve authentication details * required for HTTP client authentication. */ public interface Authentication { /**Created: Sat Dec 20 11:21:39 GMT 2025 - Last Modified: Sun Jul 06 02:13:03 GMT 2025 - 1.7K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/PostForm.java
private final OkHttpClient client = new OkHttpClient(); public void run() throws Exception { RequestBody formBody = new FormBody.Builder() .add("search", "Jurassic Park") .build(); Request request = new Request.Builder() .url("https://en.wikipedia.org/w/index.php") .post(formBody) .build(); try (Response response = client.newCall(request).execute()) {
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sun May 22 01:29:42 GMT 2016 - 1.4K bytes - Click Count (0) -
tests/test_datastructures.py
@app.post("/uploadfile/") def create_upload_file(file: UploadFile): testing_file_store.append(file) return {"filename": file.filename} client = TestClient(app) with path.open("rb") as file: response = client.post("/uploadfile/", files={"file": file}) assert response.status_code == 200, response.text assert response.json() == {"filename": "test.txt"} assert testing_file_storeCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 1.8K bytes - Click Count (0) -
tests/test_additional_responses_response_class.py
async def a(): pass # pragma: no cover @app.get("/b", responses={500: {"description": "Error", "model": Error}}) async def b(): pass # pragma: no cover client = TestClient(app) def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200, response.text assert response.json() == { "openapi": "3.1.0",Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 3.5K bytes - Click Count (0)