FakeHttpClientEndpoint

class FakeHttpClientEndpoint(val defaultMessage: String = "{}") : HttpClientEndpoint

Constructors

Link copied to clipboard
constructor(defaultMessage: String = "{}")

Properties

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
fun addOkResponse(content: String)
Link copied to clipboard
fun addResponse(code: Int, content: String)
Link copied to clipboard
suspend fun capture(format: String = "{METHOD}:{PATH}:{CONTENT}", callback: suspend () -> Unit): List<String>
Link copied to clipboard
open suspend override fun request(method: Http.Method, path: String, headers: Http.Headers, content: AsyncStream?, config: HttpClient.RequestConfig): HttpClient.Response
Link copied to clipboard