- Sort Score
- Num 10 results
- Language All
Results 671 - 680 of 1,967 for respond (0.07 seconds)
-
tests/test_param_in_path_and_dependency.py
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") assert response.json() == snapshot( { "openapi": "3.1.0", "info": {"title": "FastAPI", "version": "0.1.0"},
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 3.6K bytes - Click Count (0) -
tests/test_response_model_data_filter.py
client = TestClient(app) def test_filter_top_level_model(): response = client.post( "/users", json={"email": "******@****.***", "password": "secret"} ) assert response.json() == {"email": "******@****.***"} def test_filter_second_level_model(): response = client.get("/pets/1") assert response.json() == { "name": "Nibbler", "owner": {"email": "******@****.***"},
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 1.7K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/SynchronousGet.java
import okhttp3.Request; import okhttp3.Response; public final class SynchronousGet { private final OkHttpClient client = new OkHttpClient(); public void run() throws Exception { Request request = new Request.Builder() .url("https://publicobject.com/helloworld.txt") .build(); try (Response response = client.newCall(request).execute()) {Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun May 22 01:29:42 GMT 2016 - 1.5K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/ClientRuleEventListener.kt
logWithTime("canceled") } override fun satisfactionFailure( call: Call, response: Response, ) { logWithTime("satisfactionFailure") } override fun cacheMiss(call: Call) { logWithTime("cacheMiss") } override fun cacheHit( call: Call, response: Response, ) { logWithTime("cacheHit") } override fun cacheConditionalHit(
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Oct 07 21:03:04 GMT 2025 - 5.4K bytes - Click Count (0) -
internal/grid/README.md
if err == nil { fmt.Println("Got response with field", resp["result"]) } ``` The wrapper will handle all serialization and de-serialization of the request and response, and furthermore provides reuse of the structs used for the request and response. Note that Responses sent for serialization are automatically reused for similar requests.Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Oct 10 18:57:03 GMT 2025 - 9.4K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/info/Smb2SetInfoResponse.java
import jcifs.internal.util.SMBUtil; /** * SMB2 Set Info response message. This response acknowledges the successful * modification of file or security information. * * @author mbechler * */ public class Smb2SetInfoResponse extends ServerMessageBlock2Response { /** * Constructs a SMB2 set info response with the specified configuration * * @param configCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.3K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/sso/spnego/SpnegoAuthenticatorTest.java
// SPNEGO typically doesn't provide special response handling org.lastaflute.web.response.ActionResponse response = authenticator.getResponse(org.codelibs.fess.sso.SsoResponseType.METADATA); assertNull(response); response = authenticator.getResponse(org.codelibs.fess.sso.SsoResponseType.LOGOUT); assertNull(response); } @Test public void test_innerClassNaming() {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 4.8K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/CertificatePinning.java
Request request = new Request.Builder() .url("https://publicobject.com/robots.txt") .build(); try (Response response = client.newCall(request).execute()) { if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); for (Certificate certificate : response.handshake().peerCertificates()) { System.out.println(CertificatePinner.pin(certificate)); } } }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Dec 08 21:30:01 GMT 2019 - 1.7K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/admin/badword/AdminBadwordAction.java
import org.dbflute.optional.OptionalEntity; import org.dbflute.optional.OptionalThing; import org.lastaflute.web.Execute; import org.lastaflute.web.response.ActionResponse; import org.lastaflute.web.response.HtmlResponse; import org.lastaflute.web.response.render.RenderData; import org.lastaflute.web.ruts.process.ActionRuntime; import jakarta.annotation.Resource; /** * Admin action for Bad Word management. *
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Jan 23 23:57:26 GMT 2026 - 18K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/PrintEventsNonConcurrent.java
try (Response response = client.newCall(request).execute()) { // Consume and discard the response body. response.body().source().readByteString(); } System.out.println("REQUEST 2 (pooled connection)"); try (Response response = client.newCall(request).execute()) { // Consume and discard the response body. response.body().source().readByteString(); } }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Feb 16 23:20:49 GMT 2020 - 5.3K bytes - Click Count (0)