Class: Veeqo::Middleware::HttpException
- Inherits:
-
Faraday::Response::Middleware
- Object
- Faraday::Response::Middleware
- Veeqo::Middleware::HttpException
- Includes:
- HttpErrors
- Defined in:
- lib/veeqo/middleware/http_exception.rb
Constant Summary
Constants included from HttpErrors
Instance Method Summary collapse
Methods included from HttpErrors
Instance Method Details
#on_complete(env) ⇒ Object
8 9 10 11 |
# File 'lib/veeqo/middleware/http_exception.rb', line 8 def on_complete(env) throw_http_exception! env[:status].to_i, env env end |