- Sort Score
- Num 10 results
- Language All
Results 1351 - 1360 of 1,967 for respond (0.05 seconds)
-
docs/zh-hant/docs/advanced/additional-status-codes.md
如果你想在主要狀態碼之外再回傳其他狀態碼,可以直接回傳一個 `Response`(例如 `JSONResponse`),並直接設定你想要的額外狀態碼。 例如,你想要有一個允許更新項目的路徑操作,成功時回傳 HTTP 狀態碼 200 "OK"。 但你也希望它能接受新項目;當項目先前不存在時就建立它們,並回傳 HTTP 狀態碼 201 "Created"。 要達成這點,匯入 `JSONResponse`,直接在那裡回傳內容,並設定你想要的 `status_code`: {* ../../docs_src/additional_status_codes/tutorial001_an_py310.py hl[4,25] *} /// warning 當你直接回傳一個 `Response`(就像上面的範例),它會原封不動地被送出。 不會再經過模型序列化等處理。
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 1.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/job/PingSearchEngineJobTest.java
PingResponse response = new PingResponse(createMockHealthResponse("test-cluster", ClusterHealthStatus.RED)) { @Override public int getStatus() { // RED status should return non-zero status return 2; } }; return response; } };
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 18.9K bytes - Click Count (0) -
mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockWebServer.kt
): RecordedRequest? = delegate.takeRequest(timeout, unit)?.unwrap() @JvmName("-deprecated_requestCount") fun getRequestCount(): Int = delegate.requestCount fun enqueue(response: MockResponse) { delegate.enqueue(response.wrap()) } @Throws(IOException::class) @JvmOverloads fun start(port: Int = 0) { started = true delegate.start(port) } @Throws(IOException::class)
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Jun 18 00:19:42 GMT 2025 - 4.6K bytes - Click Count (0) -
okhttp-urlconnection/api/okhttp-urlconnection.api
public final class okhttp3/JavaNetAuthenticator : okhttp3/Authenticator { public fun <init> ()V public fun authenticate (Lokhttp3/Route;Lokhttp3/Response;)Lokhttp3/Request; } public final class okhttp3/JavaNetCookieJar : okhttp3/CookieJar { public fun <init> (Ljava/net/CookieHandler;)V public fun loadForRequest (Lokhttp3/HttpUrl;)Ljava/util/List; public fun saveFromResponse (Lokhttp3/HttpUrl;Ljava/util/List;)VCreated: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sat Feb 26 19:17:33 GMT 2022 - 423 bytes - Click Count (0) -
docs/ko/docs/alternatives.md
함수가 두 개의 파라미터(하나는 "request", 하나는 "response")를 받도록 설계되어 있습니다. 그런 다음 request에서 일부를 "읽고", response에 일부를 "작성"합니다. 이 설계 때문에, 표준 Python type hints를 함수 파라미터로 사용해 요청 파라미터와 body를 선언하는 것이 불가능합니다. 따라서 데이터 검증, serialization, 문서화는 자동으로 되지 않고 코드로 해야 합니다. 또는 Hug처럼 Falcon 위에 framework를 얹어 구현해야 합니다. request 객체 하나와 response 객체 하나를 파라미터로 받는 Falcon의 설계에서 영감을 받은 다른 framework에서도 같은 구분이 나타납니다.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 26.3K bytes - Click Count (0) -
mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/KotlinSourceModernTest.kt
val method: String = pushPromise.method val path: String = pushPromise.path val headers: Headers = pushPromise.headers val response: MockResponse = pushPromise.response } @Test @Ignore fun queueDispatcher() { val queueDispatcher: QueueDispatcher = QueueDispatcher() var mockResponse: MockResponse = queueDispatcher.dispatch(Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 7.3K bytes - Click Count (0) -
src/main/java/jcifs/dcerpc/DcerpcMessage.java
if (this.ptype == 2 || this.ptype == 3) { /* Response or Fault */ this.alloc_hint = buf.dec_ndr_long(); buf.dec_ndr_short(); /* context id */ buf.dec_ndr_short(); /* cancel count */ } if (this.ptype == 3 || this.ptype == 13) { /* Fault */ this.result = buf.dec_ndr_long(); } else { /* Bind_ack or Response */ decode_out(buf); } }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 6.3K bytes - Click Count (0) -
docs/tls/README.md
`certgen` is a simple *Go* tool to generate self-signed certificates, and provides SAN certificates with DNS and IP entries: ```sh ./certgen -host "10.10.0.3,10.10.0.4,10.10.0.5" ``` A response similar to this one should be displayed: ``` 2018/11/21 10:16:18 wrote public.crt 2018/11/21 10:16:18 wrote private.key ``` ### 3.2 Use OpenSSL to Generate a Certificate
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Aug 12 18:20:36 GMT 2025 - 8.6K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/DefaultMirrorSelector.java
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 8K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/SneakyThrows.java
* Throwable}. But we <i>can</i> write {@code sneakyThrow(t);}. * * <p>We sometimes also use {@code sneakyThrow} for testing how our code responds to * sneaky checked exception. * * @return never; this method declares a return type of {@link Error} only so that callers can
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Dec 30 18:44:22 GMT 2024 - 2.4K bytes - Click Count (0)