Class: InklingApi::PreserveRawBody

Inherits:
Faraday::Response::Middleware
  • Object
show all
Defined in:
lib/inkling_api.rb

Instance Method Summary collapse

Instance Method Details

#on_complete(env) ⇒ Object



25
26
27
# File 'lib/inkling_api.rb', line 25

def on_complete(env)
  env[:raw_body] = env[:body]
end