class Marten::HTTP::Response::Streaming

Overview

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

Defined in:

marten/http/response/streaming.cr

Constructors

Instance Method Summary

Instance methods inherited from class Marten::HTTP::Response

[]=(header : String | Symbol, value) []=, content : String content, content=(content : String) content=, content_type : String content_type, content_type=(content_type : String) content_type=, cookies : Marten::HTTP::Cookies cookies, headers : Marten::HTTP::Headers headers, status : Int32 status, status=(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) #

[View source]

Instance Method Detail

def content #
Description copied from class Marten::HTTP::Response

Returns the content associated with the HTTP response.


[View source]
def content=(val) #

[View source]
def streamed_content : Iterator(String) #

Returns the response's content iterator.


[View source]
def streamed_content=(streamed_content : Iterator(String)) #

Allows to override the response's content iterator.


[View source]