Completes a request by responding with the given HttpResponse.
Completes a request by responding with the given HttpResponse. Only the first invocation of this method determines the response that is sent back to the client. All potentially following calls will trigger an exception.
Starts a chunked (streaming) response.
Starts a chunked (streaming) response. The given HttpResponse object must have the protocol
HTTP/1.1
and is allowed to contain an entity body. Should the body of the given HttpResponse
be non-empty it
is sent immediately following the responses HTTP header section as the first chunk.
The application is required to use the returned ChunkedResponder instance to send any number of
response chunks before calling the ChunkedResponder
s close
method to finalize the response.
An instance of this trait is used by the application to complete incoming requests.