FakeHttpClientWithServer

Constructors

Link copied to clipboard
constructor(server: FakeHttpServer)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun onRequest(method: Http.Method? = null, url: String? = null, headers: Http.Headers? = null): FakeHttpClient.ResponseBuilder
Link copied to clipboard
open suspend fun post(url: String, data: HttpBodyContent, headers: Http.Headers = Http.Headers(), config: HttpClient.RequestConfig = RequestConfig.DEFAULT): HttpClient.Response
Link copied to clipboard
open suspend fun readBytes(url: String, config: HttpClient.RequestConfig = RequestConfig()): ByteArray
Link copied to clipboard
open suspend fun readJson(url: String, config: HttpClient.RequestConfig = RequestConfig()): Any?
Link copied to clipboard
open suspend fun readString(url: String, config: HttpClient.RequestConfig = RequestConfig()): String
Link copied to clipboard
open suspend fun request(method: Http.Method, url: String, headers: Http.Headers = Http.Headers(), content: AsyncInputStreamWithLength? = null, config: HttpClient.RequestConfig = RequestConfig.DEFAULT): HttpClient.Response
open suspend fun request(method: Http.Method, url: String, data: HttpBodyContent, headers: Http.Headers = Http.Headers(), config: HttpClient.RequestConfig = RequestConfig.DEFAULT): HttpClient.Response
Link copied to clipboard
open suspend fun requestAsBytes(method: Http.Method, url: String, headers: Http.Headers = Http.Headers(), content: AsyncStream? = null, config: HttpClient.RequestConfig = RequestConfig()): HttpClient.CompletedResponse<ByteArray>
Link copied to clipboard
open suspend fun requestAsString(method: Http.Method, url: String, headers: Http.Headers = Http.Headers(), content: AsyncStream? = null, config: HttpClient.RequestConfig = RequestConfig()): HttpClient.CompletedResponse<String>
Link copied to clipboard
open suspend override fun requestInternal(method: Http.Method, url: String, headers: Http.Headers = Http.Headers(), content: AsyncInputStreamWithLength? = null): HttpClient.Response
Link copied to clipboard