class

Marten::HTTP::Response::Streaming

Inherits Marten::HTTP::Response / Reference / Object

Represents a streaming HTTP response, with an iterator of strings as a content.

Constructors

new(streamed_content : Iterator(String), content_type : String = DEFAULT_CONTENT_TYPE, status : Int32 = 200)
Source

Instance methods

content

Returns the content associated with the HTTP response.

Source
content=(val)
Source
streamed_content

Returns the response's content iterator.

Source
streamed_content=(streamed_content : Iterator(String))

Allows to override the response's content iterator.

Source