Response

data class Response<C>(val code: HttpStatusCode = OK, val content: C)

Class representing an HTTP response.

Parameters

code

the HttpStatusCode.

content

the content of the message.

Constructors

Link copied to clipboard
constructor(code: HttpStatusCode = OK, content: C)

Types

Link copied to clipboard
object Companion

Utility functions.

Properties

Link copied to clipboard
val code: HttpStatusCode
Link copied to clipboard
val content: C