- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for FailingCall (0.05 sec)
-
okhttp-testing-support/src/main/kotlin/okhttp3/FailingCall.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package okhttp3 import okio.Timeout open class FailingCall : Call { override fun request(): Request = error("unexpected") override fun execute(): Response = error("unexpected") override fun enqueue(responseCallback: Callback): Unit = error("unexpected")
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 01 14:21:25 UTC 2024 - 1.1K bytes - Viewed (0) -
okhttp-coroutines/src/test/kotlin/okhttp3/coroutines/ExecuteAsyncTest.kt
import kotlinx.coroutines.withTimeout import mockwebserver3.MockResponse import mockwebserver3.MockWebServer import mockwebserver3.SocketPolicy.DisconnectAfterRequest import okhttp3.Callback import okhttp3.FailingCall import okhttp3.HttpUrl.Companion.toHttpUrl import okhttp3.OkHttpClientTestRule import okhttp3.Protocol import okhttp3.Request import okhttp3.Response import okhttp3.ResponseBody import okio.Buffer
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Apr 18 01:24:38 UTC 2024 - 5.4K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/ws/RealWebSocketTest.kt
import java.io.EOFException import java.io.IOException import java.net.ProtocolException import java.net.SocketTimeoutException import java.util.Random import kotlin.test.assertFailsWith import okhttp3.FailingCall import okhttp3.Headers import okhttp3.Headers.Companion.headersOf import okhttp3.Protocol import okhttp3.Request import okhttp3.Response import okhttp3.TestUtil.repeat import okhttp3.internal.concurrent.TaskFaker
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Apr 11 01:59:58 UTC 2024 - 18.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt
cookieJar.saveFromResponse(httpUrl, listOf(Cookie.Builder().build())) } @Test fun loggingEventListener() { var loggingEventListener: EventListener = LoggingEventListener.Factory().create(FailingCall()) } @Test fun loggingEventListenerFactory() { var factory: LoggingEventListener.Factory = LoggingEventListener.Factory()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 01 14:21:25 UTC 2024 - 46.5K bytes - Viewed (0)