- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for getHeadersDelay (0.09 sec)
-
mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/KotlinSourceModernTest.kt
val bodyDelay: Long = mockResponse.getBodyDelay(TimeUnit.SECONDS) mockResponse = mockResponse.setHeadersDelay(0L, TimeUnit.SECONDS) val headersDelay: Long = mockResponse.getHeadersDelay(TimeUnit.SECONDS) mockResponse = mockResponse.withPush(PushPromise("", "", headersOf(), MockResponse())) var pushPromises: List<PushPromise> = mockResponse.pushPromises pushPromises = mockResponse.pushPromises
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 7.3K bytes - Viewed (0) -
mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/DeprecationBridge.kt
else -> wrapSocketPolicy() } result.throttleBody(throttleBytesPerPeriod, getThrottlePeriod(MILLISECONDS), MILLISECONDS) result.bodyDelay(getBodyDelay(MILLISECONDS), MILLISECONDS) result.headersDelay(getHeadersDelay(MILLISECONDS), MILLISECONDS) return result.build() } private fun PushPromise.wrap(): mockwebserver3.PushPromise { return mockwebserver3.PushPromise( method = method, path = path,
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.6K bytes - Viewed (0) -
mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockResponse.kt
fun setHeadersDelay( delay: Long, unit: TimeUnit, ) = apply { headersDelayAmount = delay headersDelayUnit = unit } fun getHeadersDelay(unit: TimeUnit): Long = unit.convert(headersDelayAmount, headersDelayUnit) fun withPush(promise: PushPromise) = apply { promises.add(promise) } fun withSettings(settings: Settings) =
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 7.2K bytes - Viewed (0) -
mockwebserver-deprecated/api/mockwebserver.api
public final fun getBody ()Lokio/Buffer; public final fun getBodyDelay (Ljava/util/concurrent/TimeUnit;)J public final fun getHeaders ()Lokhttp3/Headers; public final fun getHeadersDelay (Ljava/util/concurrent/TimeUnit;)J public final fun getHttp2ErrorCode ()I public final fun getPushPromises ()Ljava/util/List; public final fun getSettings ()Lokhttp3/internal/http2/Settings;
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jul 22 12:28:51 UTC 2023 - 10.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt
val bodyDelay: Long = mockResponse.getBodyDelay(TimeUnit.SECONDS) mockResponse = mockResponse.setHeadersDelay(0L, TimeUnit.SECONDS) val headersDelay: Long = mockResponse.getHeadersDelay(TimeUnit.SECONDS) mockResponse = mockResponse.withPush(PushPromise("", "", headersOf(), MockResponse())) var pushPromises: List<PushPromise> = mockResponse.pushPromises pushPromises = mockResponse.pushPromises
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 01 14:21:25 UTC 2024 - 46.5K bytes - Viewed (0)