Skip to main content

ResponseStream.Complete method

Ends the body and returns the response for the handler to return.

public Response Complete()

Return Value​

The Response the handler must return.

Exceptions​

exceptioncondition
InvalidOperationExceptionA write has not finished.

Remarks​

Calling it is not enough: the client is told the body has ended only when the handler returns the response. No piece can be written afterwards. If the handler throws an exception instead of returning it, the body is broken off and the client sees an incomplete response, as Stream describes.

See Also​