Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 243 for Slavin (0.19 sec)

  1. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

                .header("Content-Type", "text/plain-ish")
                .build(),
            )
          }
        server.enqueue(MockResponse())
        client.newCall(
          request()
            .post("Hi?".toRequestBody(PLAIN))
            .build(),
        ).execute()
        applicationLogs
          .assertLogEqual("--> POST $url")
          .assertLogEqual("Content-Type: text/plain; charset=utf-8")
          .assertLogEqual("Content-Length: 3")
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 06 09:14:38 GMT 2024
    - 37.6K 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  3. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4K bytes
    - Viewed (0)
  4. maven-core/src/test/resources-project-builder/pom-encoding/latin-1/pom.xml

    -->
    
    <!--
    NOTE: This POM's XML declaration intentionally declares Latin-1 encoding.
    -->
    
    <project>
      <modelVersion>4.0.0</modelVersion>
    
      <groupId>org.apache.maven.its.mng2254</groupId>
      <artifactId>latin-1</artifactId>
      <version>0.1-SNAPSHOT</version>
      <packaging>pom</packaging>
    
      <name>Maven Integration Test :: MNG-2254 :: Latin-1</name>
      <description>TEST-CHARS: �������</description>
    XML
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Sun Mar 29 19:02:56 GMT 2020
    - 1.2K 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/CommonRequestBodyTest.kt

    class CommonRequestBodyTest {
      @Test
      fun correctContentType() {
        val body = "Body"
        val requestBody = body.toRequestBody(MediaType("text/plain", "text", "plain", arrayOf()))
    
        val contentType = requestBody.contentType()!!
    
        assertThat(contentType.mediaType).isEqualTo("text/plain; charset=utf-8")
        assertThat(contentType.parameter("charset")).isEqualTo("utf-8")
      }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 1.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/Charsets.java

      @GwtIncompatible // Charset not supported by GWT
      public static final Charset US_ASCII = Charset.forName("US-ASCII");
    
      /**
       * ISO-8859-1: ISO Latin Alphabet Number 1 (ISO-LATIN-1).
       *
       * <p><b>Java 7+ users:</b> this constant should be treated as deprecated; use {@link
       * java.nio.charset.StandardCharsets#ISO_8859_1} instead.
       *
       */
      public static final Charset ISO_8859_1 = Charset.forName("ISO-8859-1");
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/RequestTest.kt

        val contentType = "text/plain".toMediaType()
        val body = "\u0800".toRequestBody(contentType)
        assertThat(body.contentType()).isEqualTo("text/plain; charset=utf-8".toMediaType())
        assertThat(body.contentLength()).isEqualTo(3)
        assertThat(bodyToHex(body)).isEqualTo("e0a080")
      }
    
      @Test
      fun stringWithNonDefaultCharsetSpecified() {
        val contentType = "text/plain; charset=utf-16be".toMediaType()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 16.4K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SmbComSessionSetupAndX.java

                            throw new RuntimeException("Null setup prohibited.");
                        }
                    } else if( DISABLE_PLAIN_TEXT_PASSWORDS ) {
                        throw new RuntimeException( "Plain text passwords are disabled" );
                    } else if( useUnicode ) {
                        // plain text
                        String password = auth.getPassword();
                        lmHash = new byte[0];
    Java
    - Registered: Sun Apr 21 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 7.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/base/Charsets.java

      @GwtIncompatible // Charset not supported by GWT
      public static final Charset US_ASCII = Charset.forName("US-ASCII");
    
      /**
       * ISO-8859-1: ISO Latin Alphabet Number 1 (ISO-LATIN-1).
       *
       * <p><b>Java 7+ users:</b> this constant should be treated as deprecated; use {@link
       * java.nio.charset.StandardCharsets#ISO_8859_1} instead.
       *
       */
      public static final Charset ISO_8859_1 = Charset.forName("ISO-8859-1");
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 3.8K bytes
    - Viewed (0)
Back to top