Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 55 for parameters (0.24 sec)

  1. okhttp/src/test/java/okhttp3/internal/ws/WebSocketExtensionsTest.kt

          .isEqualTo(WebSocketExtensions(perMessageDeflate = true, unknownValues = true))
        assertThat(parse("permessage-deflate; unknown_parameter=15"))
          .isEqualTo(WebSocketExtensions(perMessageDeflate = true, unknownValues = true))
        assertThat(parse("permessage-deflate; unknown_parameter=15; unknown_parameter=15"))
          .isEqualTo(WebSocketExtensions(perMessageDeflate = true, unknownValues = true))
      }
    
      @Test
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/CommonRequestBodyTest.kt

        val contentType = requestBody.contentType()!!
    
        assertThat(contentType.mediaType).isEqualTo("text/plain; charset=utf-8")
        assertThat(contentType.parameter("charset")).isEqualTo("utf-8")
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 1.1K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

     * modern 4.0.x kotlin source-compatibility.
     */
    @Suppress(
      "ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE",
      "UNUSED_ANONYMOUS_PARAMETER",
      "UNUSED_VALUE",
      "UNUSED_VARIABLE",
      "VARIABLE_WITH_REDUNDANT_INITIALIZER",
      "RedundantLambdaArrow",
      "RedundantExplicitType",
      "IMPLICIT_NOTHING_AS_TYPE_PARAMETER",
    )
    @Disabled
    class KotlinSourceModernTest {
      private val factory = TestValueFactory()
    
      @BeforeEach
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 46.5K bytes
    - Viewed (4)
  4. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

         *    }
         * ```
         *
         * This method works like [X509TrustManager.checkServerTrusted] but it receives the hostname of
         * the server as an extra parameter. Regardless of what checks this method performs, OkHttp will
         * always check that the server's certificates match its hostname using the [HostnameVerifier].
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:21:33 GMT 2024
    - 52K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/-MediaTypeCommon.kt

      while (s < length) {
        val parameter = PARAMETER.matchAtPolyfill(this, s)
        require(parameter != null) {
          "Parameter is not formatted correctly: \"${substring(s)}\" for: \"$this\""
        }
    
        val name = parameter.groups[1]?.value
        if (name == null) {
          s = parameter.range.last + 1
          continue
        }
    
        val token = parameter.groups[2]?.value
        val value =
          when {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  6. mockwebserver-junit5/README.md

    ```
    
    Then in tests annotated `@org.junit.jupiter.api.Test`, you may add a [MockWebServer] as a test
    method parameter. It will be shut down automatically after the test runs.
    
    ```
    class MyTest {
      @Test
      void test(MockWebServer server) {
        ...
      }
    }
    ```
    
    Alternately you may add the [MockWebServer] as a constructor parameter:
    
    ```
    class MyTest {
      private final MockWebServer server;
    
      MyTest(MockWebServer server) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 14 10:20:09 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/ExperimentalOkHttpApi.kt

    @Target(
      AnnotationTarget.CLASS,
      AnnotationTarget.ANNOTATION_CLASS,
      AnnotationTarget.PROPERTY,
      AnnotationTarget.FIELD,
      AnnotationTarget.LOCAL_VARIABLE,
      AnnotationTarget.VALUE_PARAMETER,
      AnnotationTarget.CONSTRUCTOR,
      AnnotationTarget.FUNCTION,
      AnnotationTarget.PROPERTY_GETTER,
      AnnotationTarget.PROPERTY_SETTER,
      AnnotationTarget.TYPEALIAS,
    )
    @RequiresOptIn(level = RequiresOptIn.Level.ERROR)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  8. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

       * given time.
       *
       * @param timeout how long to wait before giving up, in units of [unit]
       * @param unit a [TimeUnit] determining how to interpret the [timeout] parameter
       * @return the head of the request queue
       */
      @Throws(InterruptedException::class)
      fun takeRequest(
        timeout: Long,
        unit: TimeUnit,
      ): RecordedRequest? = requestQueue.poll(timeout, unit)
    
    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)
  9. okhttp/api/okhttp.api

    	public fun equals (Ljava/lang/Object;)Z
    	public static final fun get (Ljava/lang/String;)Lokhttp3/MediaType;
    	public fun hashCode ()I
    	public final fun parameter (Ljava/lang/String;)Ljava/lang/String;
    	public static final fun parse (Ljava/lang/String;)Lokhttp3/MediaType;
    	public final fun subtype ()Ljava/lang/String;
    	public fun toString ()Ljava/lang/String;
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 70.2K bytes
    - Viewed (0)
  10. docs/changelogs/upgrading_to_okhttp_4.md

    will be particularly painful to naughty developers that import from this package! We changed a lot
    to take advantage of sweet Kotlin features.
    
    #### Credentials.basic()
    
    The username and password parameters to `Credentials.basic()` are now non-null strings. In OkHttp
    3.x, null would yield a username or password of "null".
    
    #### HttpUrl.queryParameterValues()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 16:58:16 GMT 2022
    - 10.9K bytes
    - Viewed (0)
Back to top