Class: Vultr::Middleware
- Inherits:
-
Faraday::Middleware
- Object
- Faraday::Middleware
- Vultr::Middleware
- Defined in:
- lib/vultr/middleware.rb
Constant Summary collapse
- ISO_DATE_FORMAT =
/\A\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|((\+|-)\d{2}:?\d{2}))\Z/xm
Instance Method Summary collapse
-
#on_complete(env) ⇒ Object
This method will be called when the response is being processed.
Instance Method Details
#on_complete(env) ⇒ Object
This method will be called when the response is being processed. You can alter it as you like, accessing things like response_body, response_headers, and more. Refer to Faraday::Env for a list of accessible fields: github.com/lostisland/faraday/blob/main/lib/faraday/options/env.rb
13 14 15 |
# File 'lib/vultr/middleware.rb', line 13 def on_complete(env) parse_dates! env[:body] end |