class Frodo::Middleware::OdataHeaders

Middleware that allows you to specify custom request headers when initializing Frodo client

Public Instance Methods

call(env) click to toggle source
# File lib/frodo/middleware/odata_headers.rb, line 7
def call(env)
  env[:request_headers].merge!({'OData-Version' => '4.0', 'Content-type' => 'application/json'})

  @app.call(env)
end