HttpResponseBuilder

Used to construct an HTTP response

Parameters

status

The HTTP status of the response

headers

Response HTTP headers

body

Response payload

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String

Inherited functions

Link copied to clipboard

Create a read-only view of a builder. Often, we need a read-only view of a builder that may get modified. This would normally require a round trip invoking HttpResponseBuilder.build and then converting that back to a builder using HttpResponse.toBuilder. Instead, we can create an immutable view of a builder that is cheap to convert to a builder.