Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for setTrailers (0.07 sec)

  1. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockResponse.kt

      @JvmName("-deprecated_getTrailers")
      @Deprecated(
        message = "moved to var",
        replaceWith = ReplaceWith(expression = "trailers"),
        level = DeprecationLevel.ERROR,
      )
      fun getTrailers(): Headers = trailers
    
      fun setTrailers(trailers: Headers) = apply { this.trailers = trailers }
    
      @JvmName("-deprecated_getSocketPolicy")
      @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)
  2. mockwebserver-deprecated/api/mockwebserver.api

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

    	public final fun getStatus ()Ljava/lang/String;
    	public final fun getStreamHandler ()Lmockwebserver3/StreamHandler;
    	public final fun getThrottleBytesPerPeriod ()J
    	public final fun getThrottlePeriodNanos ()J
    	public final fun getTrailers ()Lokhttp3/Headers;
    	public final fun getWebSocketListener ()Lokhttp3/WebSocketListener;
    	public final fun newBuilder ()Lmockwebserver3/MockResponse$Builder;
    	public fun toString ()Ljava/lang/String;
    }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 03 21:59:45 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt

      fun mockResponse() {
        val mockResponse = MockResponse()
        var status: String = mockResponse.getStatus()
        var headers: Headers = mockResponse.getHeaders()
        var trailers: Headers = mockResponse.getTrailers()
        var socketPolicy: SocketPolicy = mockResponse.getSocketPolicy()
        var http2ErrorCode: Int = mockResponse.getHttp2ErrorCode()
      }
    
      @Test @Disabled
      fun mockWebServer() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top