Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 112 for Sample (0.18 sec)

  1. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

     * peers. Sets of root certificates are managed by either the HTTP client (like Firefox), or the
     * host platform (like Android). In July 2018 Android had 134 trusted root certificates for its HTTP
     * clients to trust.
     *
     * For example, in order to establish a secure connection to `https://www.squareup.com/`,
     * these three certificates are used.
     *
     * ```
     * www.squareup.com certificate:
     *
     * Common Name: www.squareup.com
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 21.6K bytes
    - Viewed (1)
  2. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

          assertFalse(withoutHostCalled)
        }
      }
    
      @Test
      fun testUnderscoreRequest() {
        assumeNetwork()
    
        val request =
          Request.Builder().url("https://example_underscore_123.s3.amazonaws.com/").build()
    
        try {
          client.newCall(request).execute().close()
          // Hopefully this passes
        } catch (ioe: IOException) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 27K bytes
    - Viewed (1)
  3. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

        url =
          server.url(
            """/api/login?
          |user=test_user&
          |authentication=basic&
          |password=confidential_password&
          |authentication=rather simple login method
            """.trimMargin(),
          )
        val networkInterceptor =
          HttpLoggingInterceptor(networkLogs).setLevel(
            Level.BASIC,
          )
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 09:14:38 GMT 2024
    - 37.6K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/CipherSuite.kt

      /**
       * Returns the Java name of this cipher suite. For some older cipher suites the Java name has the
       * prefix `SSL_`, causing the Java name to be different from the instance name which is always
       * prefixed `TLS_`. For example, `TLS_RSA_EXPORT_WITH_RC4_40_MD5.javaName()` is
       * `"SSL_RSA_EXPORT_WITH_RC4_40_MD5"`.
       */
      @get:JvmName("javaName") val javaName: String,
    ) {
      @JvmName("-deprecated_javaName")
      @Deprecated(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 39.9K bytes
    - Viewed (1)
  5. okhttp/src/test/java/okhttp3/CallTest.kt

        // Create a certificate with an IP address in the subject alt name.
        val heldCertificate =
          HeldCertificate.Builder()
            .commonName("example.com")
            .addSubjectAlternativeName(localIpAddress!!)
            .build()
        val handshakeCertificates =
          HandshakeCertificates.Builder()
            .heldCertificate(heldCertificate)
    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)
  6. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

       * | `http://host/?`                   | `""`                   |
       * | `http://host/?a=apple&k=key+lime` | `"a=apple&k=key+lime"` |
       * | `http://host/?a=apple&a=apricot`  | `"a=apple&a=apricot"`  |
       * | `http://host/?a=apple&b`          | `"a=apple&b"`          |
       */
      @get:JvmName("encodedQuery")
      val encodedQuery: String?
        get() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 63.5K bytes
    - Viewed (1)
  7. okhttp/src/test/resources/web-platform-test-urltestdata.txt

    madeupscheme:/example.com/  s:madeupscheme p:/example.com/
    file:/example.com/  s:file p:/example.com/
    ftps:/example.com/  s:ftps p:/example.com/
    gopher:/example.com/  s:gopher h:example.com p:/
    ws:/example.com/  s:ws h:example.com p:/
    wss:/example.com/  s:wss h:example.com p:/
    data:/example.com/  s:data p:/example.com/
    javascript:/example.com/  s:javascript p:/example.com/
    mailto:/example.com/  s:mailto p:/example.com/
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  8. samples/guide/src/main/java/okhttp3/guide/PostExample.java

            + "]}";
      }
    
      public static void main(String[] args) throws IOException {
        PostExample example = new PostExample();
        String json = example.bowlingJson("Jesse", "Jake");
        String response = example.post("http://www.roundsapp.com/post", json);
        System.out.println(response);
      }
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Apr 05 03:30:42 GMT 2024
    - 2K bytes
    - Viewed (0)
  9. docs/features/calls.md

    # Calls
    
    The HTTP client’s job is to accept your request and produce its response. This is simple in theory but it gets tricky in practice.
    
    ## [Requests](https://square.github.io/okhttp/4.x/okhttp/okhttp3/-request/)
    
    Each HTTP request contains a URL, a method (like `GET` or `POST`), and a list of headers. Requests may also contain a body: a data stream of a specific content type.
    
    ## [Responses](https://square.github.io/okhttp/4.x/okhttp/okhttp3/-response/)
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 3.9K bytes
    - Viewed (0)
  10. docs/contribute/code_of_conduct.md

       capacity and competence.
    
     * **Be considerate**: People use our work, and we depend on the work of others. Consider users and
       colleagues before taking action. For example, changes to code, infrastructure, policy, and
       documentation may negatively impact others.
    
     * **Be respectful**: We expect people to work together to resolve conflict, assume good intentions,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 5.1K bytes
    - Viewed (0)
Back to top