class SSE::Errors::HTTPContentTypeError
An exception class representing an invalid HTTP content type. This can be passed to the error handler specified in {Client#on_error}.
Attributes
type[R]
The HTTP content type. @return [String]
Public Class Methods
new(type)
click to toggle source
Calls superclass method
# File lib/ld-eventsource/errors.rb, line 32 def initialize(type) @content_type = type super("invalid content type \"#{type}\"") end