Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for documents (0.2 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/SuppressSignatureCheck.kt

     * limitations under the License.
     */
    package okhttp3.internal
    
    import java.lang.annotation.Documented
    import kotlin.annotation.AnnotationRetention.BINARY
    import kotlin.annotation.AnnotationTarget.CLASS
    import kotlin.annotation.AnnotationTarget.CONSTRUCTOR
    import kotlin.annotation.AnnotationTarget.FUNCTION
    
    @Retention(BINARY)
    @Documented
    @Target(CONSTRUCTOR, CLASS, FUNCTION)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Apr 05 03:30:42 GMT 2024
    - 990 bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheStrategy.kt

          }
    
          if (lastModified != null && cacheResponse.request.url.query == null) {
            // As recommended by the HTTP RFC and implemented in Firefox, the max age of a document
            // should be defaulted to 10% of the document's age at the time it was served. Default
            // expiration dates aren't used for URIs containing a query.
            val servedMillis = servedDate?.time ?: sentRequestMillis
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 12K bytes
    - Viewed (0)
  3. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt

       */
      var typeHint: Any?
        get() = typeHintStack.lastOrNull()
        set(value) {
          typeHintStack[typeHintStack.size - 1] = value
        }
    
      /** Names leading to the current location in the ASN.1 document. */
      private val path = mutableListOf<String>()
    
      private var constructed = false
    
      private var peekedHeader: DerHeader? = null
    
      private val bytesLeft: Long
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/idn/IdnaMappingTableTest.kt

        // These compound characters map their its components.
        assertThat("¼".map()).isEqualTo("1⁄4")
        assertThat("™".map()).isEqualTo("tm")
      }
    
      /** Confirm the compact table satisfies is documented invariants. */
      @Test fun validateCompactTableInvariants() {
        // Less than 16,834 bytes, because we binary search on a 14-bit index.
        assertThat(compactTable.sections.length).isLessThan(1 shl 14)
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/EventListener.kt

       *
       * Starting with OkHttp 4.3 this may be invoked without a prior call to [responseHeadersStart]
       * or [responseBodyStart]. In earlier releases this method was documented to only be invoked after
       * one of those methods.
       */
      open fun responseFailed(
        call: Call,
        ioe: IOException,
      ) {
      }
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/CacheTest.kt

            .addHeader("Cache-Control: no-store")
            .build(),
        )
      }
    
      @Test
      fun partialRangeResponsesDoNotCorruptCache() {
        // 1. Request a range.
        // 2. Request a full document, expecting a cache miss.
        server.enqueue(
          MockResponse.Builder()
            .body("AA")
            .code(HttpURLConnection.HTTP_PARTIAL)
            .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS))
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
  7. docs/recipes.md

    Download a file, print its headers, and print its response body as a string.
    
    The `string()` method on response body is convenient and efficient for small documents. But if the response body is large (greater than 1 MiB), avoid `string()` because it will load the entire document into memory. In that case, prefer to process the body as a stream.
    
    === ":material-language-kotlin: Kotlin"
        ```kotlin
          private val client = OkHttpClient()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Feb 18 08:52:22 GMT 2022
    - 40.2K bytes
    - Viewed (1)
  8. okhttp/src/test/resources/okhttp3/internal/publicsuffix/public_suffix_list.dat

    vu
    com.vu
    edu.vu
    net.vu
    org.vu
    
    // wf : http://www.afnic.fr/medias/documents/AFNIC-naming-policy2012.pdf
    wf
    
    // ws : https://en.wikipedia.org/wiki/.ws
    // http://samoanic.ws/index.dhtml
    ws
    com.ws
    net.ws
    org.ws
    gov.ws
    edu.ws
    
    // yt : http://www.afnic.fr/medias/documents/AFNIC-naming-policy2012.pdf
    yt
    
    // IDN ccTLDs
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 240.3K bytes
    - Viewed (3)
  9. samples/guide/src/main/java/okhttp3/recipes/kt/PostMultipart.kt

    import okhttp3.OkHttpClient
    import okhttp3.Request
    import okhttp3.RequestBody.Companion.asRequestBody
    
    class PostMultipart {
      private val client = OkHttpClient()
    
      fun run() {
        // Use the imgur image upload API as documented at https://api.imgur.com/endpoints/image
        val requestBody =
          MultipartBody.Builder()
            .setType(MultipartBody.FORM)
            .addFormDataPart("title", "Square Logo")
            .addFormDataPart(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  10. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerWriter.kt

       */
      var typeHint: Any?
        get() = typeHintStack.lastOrNull()
        set(value) {
          typeHintStack[typeHintStack.size - 1] = value
        }
    
      /** Names leading to the current location in the ASN.1 document. */
      private val path = mutableListOf<String>()
    
      /**
       * False unless we made a recursive call to [write] at the current stack frame. The explicit box
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.7K bytes
    - Viewed (0)
Back to top