Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 193 for Allain (0.15 sec)

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

        val body = text.toResponseBody()
        assertThat(body.string()).isEqualTo(text)
      }
    
      @Test
      fun unicodeTextWithCharset() {
        val text = "eile oli oliiviõli"
        val body = text.toResponseBody("text/plain; charset=UTF-8".toMediaType())
        assertThat(body.string()).isEqualTo(text)
      }
    
      @Test
      fun unicodeByteString() {
        val text = "eile oli oliiviõli"
        val body = text.toResponseBody()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/CallTest.kt

        assertFailsWith<IllegalArgumentException> {
          Request.Builder().method("GET", "abc".toRequestBody("text/plain".toMediaType()))
        }
      }
    
      @Test
      fun head() {
        server.enqueue(
          MockResponse(
            headers = headersOf("Content-Type", "text/plain"),
          ),
        )
        val request =
          Request.Builder()
            .url(server.url("/"))
            .head()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  3. okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceHttpTest.kt

            .body(
              """
              |data: hey
              |
              |
              """.trimMargin(),
            ).setHeader("content-type", "text/plain")
            .build(),
        )
        newEventSource()
        listener.assertFailure("Invalid content-type: text/plain")
      }
    
      @Test
      fun badResponseCode() {
        server.enqueue(
          MockResponse.Builder()
            .body(
              """
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 14 10:20:09 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  4. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelProcessor.java

     * cannot override this binding. This is because the lookup is always short-circuited in this
     * specific situation (plain @Inject request, and plain explicit binding for the same type.)
     *
     * The simplest solution is to use a custom @Named here so it isn't bound under the plain key.
     * This is only necessary for default components using @Typed that want to support overriding.
     *
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/MultipartReaderTest.kt

    @Tag("Slowish")
    class MultipartReaderTest {
      @Test fun `parse multipart`() {
        val multipart =
          """
          |--simple boundary
          |Content-Type: text/plain; charset=utf-8
          |Content-ID: abc
          |
          |abcd
          |efgh
          |--simple boundary
          |Content-Type: text/plain; charset=utf-8
          |Content-ID: ijk
          |
          |ijkl
          |mnop
          |
          |--simple boundary--
          """.trimMargin()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/NullnessCasts.java

    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    final class NullnessCasts {
      /**
       * Accepts a {@code @Nullable T} and returns a plain {@code T}, without performing any check that
       * that conversion is safe.
       *
       * <p>This method is intended to help with usages of type parameters that have {@linkplain
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 10 20:36:34 GMT 2022
    - 3.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/NullnessCasts.java

    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    final class NullnessCasts {
      /**
       * Accepts a {@code @Nullable T} and returns a plain {@code T}, without performing any check that
       * that conversion is safe.
       *
       * <p>This method is intended to help with usages of type parameters that have {@linkplain
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 10 20:36:34 GMT 2022
    - 3.9K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/IteratorFeature.java

      /** Support for {@link Iterator#remove()}. */
      SUPPORTS_REMOVE,
      /**
       * Support for {@link ListIterator#add(Object)}; ignored for plain {@link Iterator}
       * implementations.
       */
      SUPPORTS_ADD,
      /**
       * Support for {@link ListIterator#set(Object)}; ignored for plain {@link Iterator}
       * implementations.
       */
      SUPPORTS_SET;
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Oct 03 18:22:43 GMT 2023
    - 1.9K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/IteratorFeature.java

      /** Support for {@link Iterator#remove()}. */
      SUPPORTS_REMOVE,
      /**
       * Support for {@link ListIterator#add(Object)}; ignored for plain {@link Iterator}
       * implementations.
       */
      SUPPORTS_ADD,
      /**
       * Support for {@link ListIterator#set(Object)}; ignored for plain {@link Iterator}
       * implementations.
       */
      SUPPORTS_SET;
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Oct 03 18:22:43 GMT 2023
    - 1.9K bytes
    - Viewed (0)
  10. samples/compare/src/test/kotlin/okhttp3/compare/OkHttpClientTest.kt

            .url(server.url("/"))
            .header("Accept", "text/plain")
            .build()
        val response = client.newCall(request).execute()
        assertThat(response.code).isEqualTo(200)
        assertThat(response.body.string()).isEqualTo("hello, OkHttp")
    
        val recorded = server.takeRequest()
        assertThat(recorded.headers["Accept"]).isEqualTo("text/plain")
        assertThat(recorded.headers["Accept-Encoding"]).isEqualTo("gzip")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.8K bytes
    - Viewed (0)
Back to top