class Marten::HTTP::Response::Streaming
- Marten::HTTP::Response::Streaming
- Marten::HTTP::Response
- Reference
- Object
Overview
Represents a streaming HTTP response, with an iterator of strings as a content.
Defined in:
marten/http/response/streaming.crConstructors
Instance Method Summary
-
#content
Returns the content associated with the HTTP response.
- #content=(val)
-
#streamed_content : Iterator(String)
Returns the response's content iterator.
-
#streamed_content=(streamed_content : Iterator(String))
Allows to override the response's content iterator.
Instance methods inherited from class Marten::HTTP::Response
[]=(header : String | Symbol, value)
[]=,
content : String
content,
content=(content : String)
content=,
content_type : String
content_type,
cookies : Marten::HTTP::Cookies
cookies,
headers : Marten::HTTP::Headers
headers,
status : Int32
status
Constructor methods inherited from class Marten::HTTP::Response
new(content : String = "", content_type : String = DEFAULT_CONTENT_TYPE, status : Int32 = 200)
new
Constructor Detail
def self.new(streamed_content : Iterator(String), content_type : String = DEFAULT_CONTENT_TYPE, status : Int32 = 200)
#
Instance Method Detail
def content
#
Description copied from class Marten::HTTP::Response
Returns the content associated with the HTTP response.
def streamed_content=(streamed_content : Iterator(String))
#
Allows to override the response's content iterator.