Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,062 for body (0.14 sec)

  1. okhttp/src/test/java/okhttp3/ConnectionReuseTest.kt

        val response2 = client.newCall(request).execute()
        response1.body.string() // Discard the response body.
        response2.body.string() // Discard the response body.
        assertThat(server.takeRequest().sequenceNumber).isEqualTo(0)
        assertThat(server.takeRequest().sequenceNumber).isEqualTo(1)
      }
    
      @Test
      fun connectionsAreEvicted() {
        server.enqueue(MockResponse(body = "a"))
        server.enqueue(MockResponse(body = "b"))
    Plain Text
    - Registered: Fri Apr 19 11:42:09 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/app/web/api/admin/dict/protwords/ApiAdminDictProtwordsAction.java

        public JsonResponse<ApiResult> get$settings(final String dictId, final SearchBody body) {
            body.dictId = dictId;
            validateApi(body, messages -> {});
            final ProtwordsPager pager = copyBeanToNewBean(body, ProtwordsPager.class);
            return asJson(new ApiResult.ApiConfigsResponse<EditBody>()
                    .settings(protwordsService.getProtwordsList(body.dictId, pager).stream()
    Java
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/MultipartBodyTest.kt

        assertThat(body.boundary).isEqualTo("123")
        assertThat(body.type).isEqualTo(MultipartBody.MIXED)
        assertThat(body.contentType().toString())
          .isEqualTo("multipart/mixed; boundary=123")
        assertThat(body.parts.size).isEqualTo(1)
        assertThat(body.contentLength()).isEqualTo(33L)
        val buffer = Buffer()
        body.writeTo(buffer)
        assertThat(body.contentLength()).isEqualTo(buffer.size)
    Plain Text
    - Registered: Fri Apr 19 11:42:09 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/ResponseBodyTest.kt

            }
          }
        assertThat(body.source().readUtf8()).isEqualTo("hello")
        body.close()
      }
    
      @Test
      fun unicodeText() {
        val text = "eile oli oliiviõli"
        val body = text.toResponseBody()
        assertThat(body.string()).isEqualTo(text)
      }
    
      @Test
      fun unicodeTextWithCharset() {
        val text = "eile oli oliiviõli"
    Plain Text
    - Registered: Fri Apr 19 11:42:09 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/RequestTest.kt

        assertThat(body.contentLength()).isEqualTo(3)
        assertThat(bodyToHex(body)).isEqualTo("616263")
        assertThat(bodyToHex(body), "Retransmit body").isEqualTo("616263")
      }
    
      @Test
      fun byteArrayRange() {
        val contentType = "text/plain".toMediaType()
        val body: RequestBody = ".abcd".toByteArray().toRequestBody(contentType, 1, 3)
        assertThat(body.contentType()).isEqualTo(contentType)
    Plain Text
    - Registered: Fri Apr 19 11:42:09 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 16.4K bytes
    - Viewed (0)
  6. tests/test_local_docs.py

        )
        body_content = html.body.decode()
        assert redoc_js_url in body_content
        assert redoc_favicon_url in body_content
    
    
    def test_google_fonts_in_generated_redoc():
        body_with_google_fonts = get_redoc_html(
            openapi_url="/docs", title="title"
        ).body.decode()
        assert "fonts.googleapis.com" in body_with_google_fonts
        body_without_google_fonts = get_redoc_html(
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Sun Dec 20 18:50:00 GMT 2020
    - 2.4K bytes
    - Viewed (0)
  7. okcurl/src/test/kotlin/okhttp3/curl/MainTest.kt

        val request = fromArgs("-d", "foo", "http://example.com").createRequest()
        val body = request.body
        assertThat(request.method).isEqualTo("POST")
        assertThat(request.url.toString()).isEqualTo("http://example.com/")
        assertThat(body!!.contentType().toString()).isEqualTo(
          "application/x-www-form-urlencoded; charset=utf-8",
        )
        assertThat(bodyAsString(body)).isEqualTo("foo")
      }
    
      @Test
      fun dataPut() {
    Plain Text
    - Registered: Fri Apr 19 11:42:09 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/api/admin/dict/kuromoji/ApiAdminDictKuromojiAction.java

            final EditBody body = new EditBody();
            body.id = entity.getId();
            body.dictId = dictId;
            body.token = entity.getToken();
            body.reading = entity.getReading();
            body.pos = entity.getPos();
            body.segmentation = entity.getSegmentation();
            return body;
        }
    Java
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/FormBodyTest.kt

        assertThat(body.name(1)).isEqualTo("space, the")
        assertThat(body.name(2)).isEqualTo("%25")
        assertThat(body.encodedValue(0)).isEqualTo("c%2B%3D%26+d")
        assertThat(body.encodedValue(1)).isEqualTo("final+frontier")
        assertThat(body.encodedValue(2)).isEqualTo("%2525")
        assertThat(body.value(0)).isEqualTo("c+=& d")
        assertThat(body.value(1)).isEqualTo("final frontier")
        assertThat(body.value(2)).isEqualTo("%25")
    Plain Text
    - Registered: Fri Apr 19 11:42:09 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

        mockWebServer: MockWebServer,
      ) {
        setUp(protocol, mockWebServer)
        val body = repeat('y', 2048)
        server.enqueue(
          MockResponse.Builder()
            .body(body)
            .throttleBody(1024, 1, TimeUnit.SECONDS)
            .build(),
        ) // Slow connection 1KiB/second.
        server.enqueue(
          MockResponse(body = body),
        )
        client =
          client.newBuilder()
    Plain Text
    - Registered: Fri Apr 19 11:42:09 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 75.3K bytes
    - Viewed (0)
Back to top