Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Introduce Rack::Defaults #2413

@ioquatix

Description

@ioquatix
class Rack::Defaults
  def initialize(app, **options)
    @app = app
    @options = options
  end

  attr :options

  def call(env)
    env.merge!(@options)
    @app.call(env)
  end
end

And:

  • Documentation/standards for all the currently "global configurations" that we have.
  • Changes to code to use these configuration values where possible.

Notable Cases

  • Multipart parser / configuration.
  • Query string parser / configuration.
  • Handling of IP addresses and forwarded headers.
  • ... please edit and add more ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions