Method: Faraday::RackBuilder#app

Defined in:
lib/faraday/rack_builder.rb

#appObject

The “rack app” wrapped in middleware. All requests are sent here.

The builder is responsible for creating the app object. After this, the builder gets locked to ensure no further modifications are made to the middleware stack.

Returns an object that responds to ‘call` and returns a Response.



162
163
164
165
166
167
168
# File 'lib/faraday/rack_builder.rb', line 162

def app
  @app ||= begin
    lock!
    ensure_adapter!
    to_app
  end
end