tornadofx / tornadofx / Rest / Response

Response

interface Response : Closeable

Types

Status enum class Status

Properties

headers abstract val headers: Map<String, List<String>>
reason abstract val reason: String
request abstract val request: Request
status open val status: Status
statusCode abstract val statusCode: Int

Functions

bytes abstract fun bytes(): ByteArray
consume abstract fun consume(): Response
content abstract fun content(): InputStream
header open fun header(name: String): String?
list open fun list(): JsonArray
ok open fun ok(): Boolean
one open fun one(): JsonObject
text abstract fun text(): String?

Extension Properties

digestParams val Response.digestParams: Map<String, String>?

Inheritors

HttpClientResponse class HttpClientResponse : Response
HttpURLResponse class HttpURLResponse : Response