Builder

Collects the optional parts of an HttpResponse. Not thread-safe; use it only inside the factory's lambda.

Stable Core.

Properties

Link copied to clipboard

The response headers; empty by default.

Link copied to clipboard

The followed redirects; empty by default.

Functions

Link copied to clipboard
fun body(bytes: ByteArray)

Sets the body; bytes is copied when the response is built.