class Net::HTTPResponse

Public Instance Methods

ensure_success() click to toggle source
# File lib/lita/handlers/retrotext.rb, line 8
def ensure_success
  unless kind_of? Net::HTTPSuccess
    warn "Request failed with HTTP #{@code}"
    each_header do |h,v|
      warn "#{h} => #{v}"
    end
    abort
  end
end