- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 80 for OK (0.14 sec)
-
docs/ja/docs/advanced/additional-status-codes.md
それは、デフォルトのステータスコードか、 *path operation* でセットしたものを利用します。 ## 追加のステータスコード メインのステータスコードとは別に、他のステータスコードを返したい場合は、`Response` (`JSONResponse` など) に追加のステータスコードを設定して直接返します。 例えば、itemを更新し、成功した場合は200 "OK"のHTTPステータスコードを返す *path operation* を作りたいとします。 しかし、新しいitemも許可したいです。itemが存在しない場合は、それらを作成して201 "Created"を返します。 これを達成するには、 `JSONResponse` をインポートし、 `status_code` を設定して直接内容を返します。 ```Python hl_lines="4 25"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat May 14 11:59:59 GMT 2022 - 2.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CacheTest.kt
assertThat(response2.code).isEqualTo(HttpURLConnection.HTTP_OK) assertThat(response2.message).isEqualTo("A-OK") val invalid = server.url("/invalid") val response3 = get(invalid) assertThat(response3.body.string()).isEqualTo("B") assertThat(response3.code).isEqualTo(HttpURLConnection.HTTP_OK) assertThat(response3.message).isEqualTo("B-OK") val response4 = get(invalid)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 10 19:46:48 GMT 2024 - 108.6K bytes - Viewed (0) -
okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt
.assertLogMatch(Regex("""requestHeadersEnd""")) .assertLogMatch(Regex("""responseHeadersStart""")) .assertLogMatch(Regex("""responseHeadersEnd: Response\{protocol=http/1\.1, code=200, message=OK, url=$url\}""")) .assertLogMatch(Regex("""responseBodyStart""")) .assertLogMatch(Regex("""responseBodyEnd: byteCount=6""")) .assertLogMatch(Regex("""connectionReleased"""))
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Jan 14 10:20:09 GMT 2024 - 10.2K bytes - Viewed (0) -
okhttp-coroutines/src/test/kotlin/okhttp3/SuspendCallTest.kt
private class ClosableCall : FailingCall() { private val response = Response.Builder() .request(Request("https://example.com/".toHttpUrl())) .protocol(Protocol.HTTP_1_1) .message("OK") .code(200) .body( object : ResponseBody() { override fun contentType() = null override fun contentLength() = -1L override fun source() =
Plain Text - Registered: Fri Apr 12 11:42:09 GMT 2024 - Last Modified: Fri Apr 05 11:25:23 GMT 2024 - 5.3K bytes - Viewed (0) -
okhttp-brotli/src/test/java/okhttp3/brotli/BrotliInterceptorTest.kt
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 4.2K bytes - Viewed (0) -
.teamcity/README.md
- At the popup window, click `Import Settings from VCS`. Wait a few seconds. - If the error says "Context Parameter 'Branch' missing", it's ok. Click into the error and add a context parameter `Branch` with value `myTestBranch`. Go back and it automatically reloads. - If there are any errors, read the error and fix your code.
Plain Text - Registered: Wed May 08 11:36:15 GMT 2024 - Last Modified: Wed Mar 06 23:02:25 GMT 2024 - 4K bytes - Viewed (0) -
docs/logging/README.md
"time": "2021-10-08T00:46:36.801714978Z", "trigger": "incoming", "api": { "name": "PutObject", "bucket": "testbucket", "object": "hosts", "status": "OK", "statusCode": 200, "rx": 380, "tx": 476, "timeToResponse": "257694819ns" }, "remotehost": "127.0.0.1", "requestID": "16ABE7A785E7AC2C",
Plain Text - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Tue Aug 15 23:04:20 GMT 2023 - 9.9K bytes - Viewed (2) -
okhttp-brotli/src/test/java/okhttp3/brotli/BrotliBombTest.kt
class BrotliBombTest { /** https://github.com/square/okhttp/issues/7738 */ @Test fun testDecompressBomb() { val response = Response.Builder() .code(200) .message("OK") .header("Content-Encoding", "br") .request(Request.Builder().url("https://example.com/").build()) .body(readBrotli10G().toResponseBody()) .protocol(Protocol.HTTP_2) .build()
Plain Text - Registered: Fri Mar 29 11:42:11 GMT 2024 - Last Modified: Mon Jan 29 22:50:20 GMT 2024 - 2.9K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt
import okhttp3.internal.http2.Settings import okio.Buffer /** A scripted response to be replayed by the mock web server. */ @ExperimentalOkHttpApi class MockResponse { /** Returns the HTTP response line, such as "HTTP/1.1 200 OK". */ val status: String val code: Int get() { val statusParts = status.split(' ', limit = 3) require(statusParts.size >= 2) { "Unexpected status: $status" } return statusParts[1].toInt()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Tue Jan 23 14:31:42 GMT 2024 - 13.3K bytes - Viewed (1) -
src/packaging/common/scripts/postrm
update-rc.d fess remove >/dev/null || true fi fi if [ "$REMOVE_DIRS" = "true" ]; then if [ -d "$PID_DIR" ]; then echo -n "Deleting PID directory..." rm -rf "$PID_DIR" && echo " OK" || echo " ERROR: unable to delete directory [$PID_DIR]" fi fi if [ "$REMOVE_USER_AND_GROUP" = "true" ]; then if id "$FESS_USER" > /dev/null 2>&1 ; then userdel "$FESS_USER" fi
Plain Text - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Thu Dec 10 01:24:02 GMT 2015 - 2.2K bytes - Viewed (0)