Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for setSocketPolicy (0.19 sec)

  1. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

      }
    
      @Disabled("Not actually failing where expected")
      @Test
      fun disconnectAtStart() {
        server.enqueue(
          MockResponse()
            .setSocketPolicy(SocketPolicy.DISCONNECT_AT_START),
        )
        server.enqueue(MockResponse()) // The jdk's HttpUrlConnection is a bastard.
        server.enqueue(MockResponse())
        try {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  2. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockResponse.kt

      @Deprecated(
        message = "moved to var",
        replaceWith = ReplaceWith(expression = "socketPolicy"),
        level = DeprecationLevel.ERROR,
      )
      fun getSocketPolicy(): SocketPolicy = socketPolicy
    
      fun setSocketPolicy(socketPolicy: SocketPolicy) =
        apply {
          this.socketPolicy = socketPolicy
        }
    
      @JvmName("-deprecated_getHttp2ErrorCode")
      @Deprecated(
        message = "moved to var",
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  3. mockwebserver-deprecated/api/mockwebserver.api

    	public final fun setHttp2ErrorCode (I)Lokhttp3/mockwebserver/MockResponse;
    	public final fun setResponseCode (I)Lokhttp3/mockwebserver/MockResponse;
    	public final fun setSocketPolicy (Lokhttp3/mockwebserver/SocketPolicy;)Lokhttp3/mockwebserver/MockResponse;
    	public final fun setStatus (Ljava/lang/String;)Lokhttp3/mockwebserver/MockResponse;
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jul 22 12:28:51 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  4. mockwebserver/api/mockwebserver3.api

    	public final fun setBody (Lmockwebserver3/MockResponseBody;)V
    	public final fun setCode (I)V
    	public final fun setHeader (Ljava/lang/String;Ljava/lang/Object;)Lmockwebserver3/MockResponse$Builder;
    	public final fun setSocketPolicy (Lmockwebserver3/SocketPolicy;)V
    	public final fun setStatus (Ljava/lang/String;)V
    	public final fun setStreamHandler (Lmockwebserver3/StreamHandler;)V
    	public final fun setWebSocketListener (Lokhttp3/WebSocketListener;)V
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 03 21:59:45 UTC 2023
    - 12.7K bytes
    - Viewed (0)
Back to top