Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for script (0.18 sec)

  1. mockwebserver/README.md

    awkward-to-reproduce situations like 500 errors or slow-loading responses.
    
    
    ### Example
    
    Use MockWebServer the same way that you use mocking frameworks like
    [Mockito](https://github.com/mockito/mockito):
    
    1. Script the mocks.
    2. Run application code.
    3. Verify that the expected requests were made.
    
    Here's a complete example:
    
    ```java
    public void test() throws Exception {
    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)
  2. okhttp/src/main/kotlin/okhttp3/internal/url/-Url.kt

      limit: Int = length,
      encodeSet: String,
      alreadyEncoded: Boolean = false,
      strict: Boolean = false,
      plusIsSpace: Boolean = false,
      unicodeAllowed: Boolean = false,
    ): String {
      return canonicalizeWithCharset(
        pos = pos,
        limit = limit,
        encodeSet = encodeSet,
        alreadyEncoded = alreadyEncoded,
        strict = strict,
        plusIsSpace = plusIsSpace,
        unicodeAllowed = unicodeAllowed,
      )
    }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/UrlComponentEncodingTesterJvm.kt

       * strict than the others.
       */
      fun escapeForUri(vararg codePoints: Int) =
        apply {
          uriEscapedCodePoints.append(String(*codePoints))
        }
    
      /**
       * Configure code points to be stripped in conversion to `java.net.URI`. That class is more
       * strict than the others.
       */
      fun stripForUri(vararg codePoints: Int) =
        apply {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  4. docs/features/https.md

    .x/okhttp/okhttp3/-tls-version/) and [cipher suites](https://square.github.io/okhttp/4.x/okhttp/okhttp3/-cipher-suite/) to offer. A client that wants to maximize connectivity would include obsolete TLS versions and weak-by-design cipher suites. A strict client that wants to maximize security would be limited to only the latest TLS version and strongest cipher suites.
    
    Specific security vs. connectivity decisions are implemented by [ConnectionSpec](https://square.github.io/okhttp/4.x/okht...
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Dec 24 00:16:30 GMT 2022
    - 10.5K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/EventListener.kt

     *      * response ([responseFailed])
     *        * headers ([responseHeadersStart], [responseHeadersEnd])
     *        * body ([responseBodyStart], [responseBodyEnd])
     *
     * This nesting is typical but not strict. For example, when calls use "Expect: continue" the
     * request body start and end events occur within the response header events. Similarly,
     * [duplex calls][RequestBody.isDuplex] interleave the request and response bodies.
     *
    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. docs/security/tls_configuration_history.md

    * **NEW:** TLSv1.3
    * TLSv1.2
    * TLSv1.1
    * TLSv1
    
    ##### COMPATIBLE_TLS versions
    
    * TLSv1
    
    [OkHttp 3.11][OkHttp311]
    ------------------------
    
    _2018-07-12_
    
    Added a new extra strict RESTRICTED_TLS configuration inspired by [Google Cloud’s similar policy][googlecloud_ssl_policy]. It is appropriate when both the host platform
    (JVM/Conscrypt/Android) and target webserver are current.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 16:35:36 GMT 2022
    - 9K bytes
    - Viewed (0)
  7. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

       */
      @Throws(InterruptedException::class)
      fun takeRequest(
        timeout: Long,
        unit: TimeUnit,
      ): RecordedRequest? = requestQueue.poll(timeout, unit)
    
      /**
       * Scripts [response] to be returned to a request made in sequence. The first request is
       * served by the first enqueued response; the second request by the second enqueued response; and
       * so on.
       *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 37.4K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

     *
     * This cache limits the number of bytes that it will store on the filesystem. When the number of
     * stored bytes exceeds the limit, the cache will remove entries in the background until the limit
     * is satisfied. The limit is not strict: the cache may temporarily exceed it while waiting for
     * files to be deleted. The limit does not include filesystem overhead or the cache journal so
     * space-sensitive applications should set a conservative limit.
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 34.7K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        // We buffer some outbound data and headers and confirm that the END_STREAM flag comes with the
        // headers (and not with the data).
    
        // Write the mocking script. for the client
        peer.setClient(true)
    
        // Write the mocking script.
        peer.sendFrame().settings(Settings())
        peer.sendFrame().headers(true, 3, headerEntries("client", "abc"))
        peer.acceptFrame() // ACK
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 75.4K bytes
    - Viewed (0)
  10. fuzzing/fuzzingserver-update-expected.sh

    #!/usr/bin/env bash
    
    SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )"
    cd "$SCRIPT_DIR"
    
    if [ ! -f target/fuzzingserver-actual.txt ]; then
      echo "File not found. Did you run the Autobahn test script?"
      exit 1
    fi
    
    Shell Script
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Mar 26 02:01:32 GMT 2019
    - 275 bytes
    - Viewed (0)
Back to top