- Sort Score
- Num 10 results
- Language All
Results 511 - 520 of 1,344 for request (0.06 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
docs_src/handling_errors/tutorial006_py39.py
async def custom_http_exception_handler(request, exc): print(f"OMG! An HTTP error!: {repr(exc)}") return await http_exception_handler(request, exc) @app.exception_handler(RequestValidationError) async def validation_exception_handler(request, exc): print(f"OMG! The client sent invalid data!: {exc}") return await request_validation_exception_handler(request, exc) @app.get("/items/{item_id}")
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 928 bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/CacheResponse.kt
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 2K bytes - Click Count (0) -
samples/unixdomainsockets/src/main/java/okhttp3/unixdomainsockets/ClientAndServer.java
.protocols(Collections.singletonList(Protocol.H2_PRIOR_KNOWLEDGE)) .build(); Request request = new Request.Builder() .url("http://publicobject.com/helloworld.txt") .build(); try (Response response = client.newCall(request).execute()) { System.out.println(response.body().string()); } server.shutdown(); socketFile.delete(); }
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Mon Dec 24 03:46:30 GMT 2018 - 2.1K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/Progress.java
import okhttp3.MediaType; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.Response; import okhttp3.ResponseBody; import okio.Buffer; import okio.BufferedSource; import okio.ForwardingSource; import okio.Okio; import okio.Source; public final class Progress { public void run() throws Exception { Request request = new Request.Builder() .url("https://publicobject.com/helloworld.txt")Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat Jan 12 03:31:36 GMT 2019 - 3.9K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/artifact/repository/RepositoryCache.java
* * @param request The repository request from which this cache was retrieved, must not be {@code null}. * @param key The key to use for lookup of the data, must not be {@code null}. * @return The requested data or {@code null} if none was present in the cache. */ Object get(RepositoryRequest request, Object key);Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 2.6K bytes - Click Count (0) -
internal/s3select/select_test.go
withJSON: `{"request":{"uri":"/1","header":{"User-Agent":"test"}}} {"request":{"uri":"/2","header":{}}}`, }, { name: "is-not-missing-2", query: `select * from s3object[*] as s where s.request.header is not missing`, wantResult: `{"request":{"uri":"/1","header":{"User-Agent":"test"}}} {"request":{"uri":"/2","header":{}}}`,Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 76.1K bytes - Click Count (0) -
android-test/src/test/kotlin/okhttp/android/test/BaseOkHttpClientUnitTest.kt
.build() } @Test fun testRequestExternal() { assumeNetwork() val request = Request("https://www.google.com/robots.txt".toHttpUrl()) val networkRequest = request .newBuilder() .build() val call = client.newCall(networkRequest) call.execute().use { response ->
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Jul 22 20:03:31 GMT 2025 - 2.3K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/PostMultipart.kt
File("docs/images/logo-square.png").asRequestBody(MEDIA_TYPE_PNG), ).build() val request = Request .Builder() .header("Authorization", "Client-ID $IMGUR_CLIENT_ID") .url("https://api.imgur.com/3/image") .post(requestBody) .build() client.newCall(request).execute().use { response -> if (!response.isSuccessful) throw IOException("Unexpected code $response")
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 2.1K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/project/collector/ProjectsSelector.java
* @param files List of POM files. * @param request The {@link MavenExecutionRequest} * @return A list of projects that have been found in the specified POM files. * @throws ProjectBuildingException In case the POMs are not used. */ List<MavenProject> selectProjects(List<File> files, MavenExecutionRequest request) throws ProjectBuildingException;Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 1.6K bytes - Click Count (0) -
tests/test_tutorial/test_body_nested_models/test_tutorial009.py
import pytest from fastapi.testclient import TestClient @pytest.fixture( name="client", params=[ "tutorial009_py39", ], ) def get_client(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.body_nested_models.{request.param}") client = TestClient(mod.app) return client def test_post_body(client: TestClient): data = {"2": 2.2, "3": 3.3}
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 4K bytes - Click Count (0)