HttpResponseBuilder
class HttpResponseBuilder
Used to construct an HTTP response
Parameters
status
The HTTP status of the response
headers
Response HTTP headers
body
Response payload
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.