class LHC::Request

def initialize(options, self_executing = true)

Experimental RBS support (using type sampling data from the type_fusion project).

def initialize: (Hash options, ?true self_executing) -> void

This signature was generated using 41 samples from 3 applications.

def initialize(options, self_executing = true)
  self.errors_ignored = (options.fetch(:ignore, []) || []).to_a.compact
  self.source = options&.dig(:source)
  self.options = format!(options.deep_dup || {})
  self.error_handler = options.delete :rescue
  use_configured_endpoint!
  generate_url_from_template!
  self.interceptors = LHC::Interceptors.new(self)
  interceptors.intercept(:before_raw_request)
  self.raw = create_request
  interceptors.intercept(:before_request)
  if self_executing && !response
    run!
  elsif response
    on_complete(response)
  end
end