Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for optional (0.15 sec)

  1. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt

      /**
       * ```
       * Point ::= SEQUENCE {
       *   x [0] INTEGER OPTIONAL,
       *   y [1] INTEGER OPTIONAL
       * }
       * ```
       */
      data class Point(
        val x: Long?,
        val y: Long?,
      ) {
        companion object {
          val ADAPTER =
            Adapters.sequence(
              "Point",
              Adapters.INTEGER_AS_LONG.withTag(tag = 0L).optional(),
              Adapters.INTEGER_AS_LONG.withTag(tag = 1L).optional(),
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 31.7K bytes
    - Viewed (0)
  2. mockwebserver/README.md

      assertEquals("hello, world!", chat.messages());
    
      chat.loadMore();
      chat.loadMore();
      assertEquals(""
          + "hello, world!\n"
          + "sup, bra?\n"
          + "yo dog", chat.messages());
    
      // Optional: confirm that your app made the HTTP requests you were expecting.
      RecordedRequest request1 = server.takeRequest();
      assertEquals("/v1/chat/messages/", request1.getPath());
      assertNotNull(request1.getHeader("Authorization"));
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Dec 17 15:34:10 GMT 2023
    - 5K bytes
    - Viewed (1)
  3. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/BasicDerAdapter.kt

       * Point ::= SEQUENCE {
       *   x [0] INTEGER OPTIONAL,
       *   y [1] INTEGER OPTIONAL
       * }
       * ```
       *
       * You may also specify a tag class like [DerHeader.TAG_CLASS_APPLICATION]. The default tag class
       * is [DerHeader.TAG_CLASS_CONTEXT_SPECIFIC].
       *
       * ```
       * Point ::= SEQUENCE {
       *   x [APPLICATION 0] INTEGER OPTIONAL,
       *   y [APPLICATION 1] INTEGER OPTIONAL
       * }
       * ```
       */
      fun withTag(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  4. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/CertificateAdapters.kt

            // v1 == 0.
            .optional(defaultValue = 0),
          Adapters.INTEGER_AS_BIG_INTEGER,
          algorithmIdentifier,
          name,
          validity,
          name,
          subjectPublicKeyInfo,
          Adapters.BIT_STRING.withTag(tag = 1L).optional(),
          Adapters.BIT_STRING.withTag(tag = 2L).optional(),
          extension.asSequenceOf().withExplicitBox(tag = 3).optional(defaultValue = listOf()),
          decompose = {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13.6K bytes
    - Viewed (1)
  5. okhttp/src/main/kotlin/okhttp3/MultipartReader.kt

        ) : Closeable by body
    
        internal companion object {
          /** These options follow the boundary. */
          val afterBoundaryOptions =
            Options.of(
              // 0.  "\r\n"  More parts.
              "\r\n".encodeUtf8(),
              // 1.  "--"    No more parts.
              "--".encodeUtf8(),
              // 2.  " "     Optional whitespace. Only used if there are more parts.
              " ".encodeUtf8(),
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  6. docs/features/caching.md

    Caching
    =======
    
    OkHttp implements an optional, off by default, Cache. OkHttp aims for RFC correct and
    pragmatic caching behaviour, following common real-world browser like Firefox/Chrome and 
    server behaviour when ambiguous.
    
    # Basic Usage
    
    ```kotlin
      private val client: OkHttpClient = OkHttpClient.Builder()
          .cache(Cache(
              directory = File(application.cacheDir, "http_cache"),
              // $0.05 worth of phone storage in 2020
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 3.1K bytes
    - Viewed (0)
  7. okhttp/build.gradle.kts

      "Import-Package: " +
        "android.*;resolution:=optional," +
        "com.oracle.svm.core.annotate;resolution:=optional," +
        "com.oracle.svm.core.configure;resolution:=optional," +
        "dalvik.system;resolution:=optional," +
        "org.conscrypt;resolution:=optional," +
        "org.bouncycastle.*;resolution:=optional," +
        "org.openjsse.*;resolution:=optional," +
        "org.graalvm.nativeimage;resolution:=optional," +
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Jan 04 05:32:07 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/http/StatusLine.kt

          }
          val code =
            statusLine.substring(codeStart, codeStart + 3).toIntOrNull()
              ?: throw ProtocolException(
                "Unexpected status line: $statusLine",
              )
    
          // Parse an optional response message like "OK" or "Not Modified". If it
          // exists, it is separated from the response code by a space.
          var message = ""
          if (statusLine.length > codeStart + 3) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  9. docs/features/calls.md

    ## [Responses](https://square.github.io/okhttp/4.x/okhttp/okhttp3/-response/)
    
    The response answers the request with a code (like 200 for success or 404 for not found), headers, and its own optional body.
    
    ## Rewriting Requests
    
    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. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt

    /**
     * A single attempt to connect to a remote server, including these steps:
     *
     *  * [TCP handshake][connectSocket]
     *  * Optional [CONNECT tunnels][connectTunnel]. When using an HTTP proxy to reach an HTTPS server
     *    we must send a `CONNECT` request, and handle authorization challenges from the proxy.
     *  * Optional [TLS handshake][connectTls].
     *
     * Each step may fail. If a retry is possible, a new instance is created with the next plan, which
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 18.6K bytes
    - Viewed (0)
Back to top