class

Crig::HttpClient::GenericEventSource(HttpClientType)

Inherits Reference < Object

Constructors

new(client : HttpClientType, req : HTTP::Request, retry_policy : RetryPolicyCarrier)
Source
new(client : HttpClientType, req : HTTP::Request)
Source

Instance methods

allow_missing_content_type

When set, missing or empty Content-Type headers are accepted. By default, only text/event-stream is accepted.

Source
close
Source
last_event_id
Source
receive?
Source