ResponseBuilder
class ResponseBuilder
Functions
Link copied to clipboard
fun handler(callback: suspend (method: Http.Method, url: String, headers: Http.Headers, content: ByteArray?) -> HttpClient.Response)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun internalServerError(content: String = "500 - Internal Server Error"): FakeHttpClient.ResponseBuilder
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun response(content: String, code: Int = 200, charset: Charset = UTF8): FakeHttpClient.ResponseBuilder