class HTTP::ServerSentEvents::EventSource

Defined in:

sse/event_source.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(uri : String, base_headers : HTTP::Headers | Nil = nil) #

[View source]
def self.new(uri : URI, base_headers : HTTP::Headers | Nil = nil) #

[View source]

Class Method Detail

def self.default_retry_duration : Int64 #

[View source]
def self.default_retry_duration=(default_retry_duration : Int64) #

[View source]

Instance Method Detail

def on_error(&on_error : NamedTuple(status_code: Int32, message: String) -> ) : Nil #

[View source]
def on_message(&on_message : EventMessage -> ) : Nil #

[View source]
def run : Nil #

[View source]
def stop : Nil #

[View source]