Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for setBodyLimit (0.07 sec)

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

      @Deprecated(
        message = "moved to var",
        replaceWith =
          ReplaceWith(
            expression = "run { this.bodyLimit = bodyLimit }",
          ),
        level = DeprecationLevel.ERROR,
      )
      fun setBodyLimit(bodyLimit: Long) {
        delegate.bodyLimit = bodyLimit
      }
    
      @JvmName("-deprecated_protocolNegotiationEnabled")
      @Deprecated(
        message = "moved to var",
        replaceWith =
          ReplaceWith(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt

      @Test @Disabled
      fun mockWebServer() {
        val mockWebServer = MockWebServer()
        var port: Int = mockWebServer.getPort()
        mockWebServer.setServerSocketFactory(ServerSocketFactory.getDefault())
        mockWebServer.setBodyLimit(0L)
        mockWebServer.setProtocolNegotiationEnabled(false)
        mockWebServer.setProtocols(listOf(Protocol.HTTP_1_1))
        var requestCount: Int = mockWebServer.getRequestCount()
      }
    
      @Test @Disabled
    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