Class: Akasha::Storage::HttpEventStore::ResponseHandler
- Inherits:
-
Faraday::Response::Middleware
- Object
- Faraday::Response::Middleware
- Akasha::Storage::HttpEventStore::ResponseHandler
- Defined in:
- lib/akasha/storage/http_event_store/response_handler.rb
Overview
Handles responses from Eventstore HTTP API.
Instance Method Summary collapse
Instance Method Details
#on_complete(env) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/akasha/storage/http_event_store/response_handler.rb', line 6 def on_complete(env) case env.status when (400..499) raise HttpClientError, env when (500..599) raise HttpServerError, env end end |