class Protocol::HTTP::Body::Readable

def close(error = nil)

@parameter error [Exception | Nil] The error that caused this stream to be closed, if any.

Invoking {read} after {close} will return `nil`.

If an error occured while handling the output, it can be passed as an argument. This may be propagated to the client, for example the client may be informed that the stream was not fully read correctly.

Close the stream immediately. After invoking this method, the stream should be considered closed, and all internal resources should be released.
def close(error = nil)
end