ResponseBuilder

Constructors

Link copied to clipboard
constructor()

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
fun notFound(content: String = "404 - Not Found"): FakeHttpClient.ResponseBuilder
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun response(content: String, code: Int = 200, charset: Charset = UTF8): FakeHttpClient.ResponseBuilder