Module: Rack::Safrano

Defined in:
lib/safrano/rack_builder.rb

Defined Under Namespace

Classes: Builder

Constant Summary collapse

LOCALHOST_ANY_PORT_RGX =

just a Wrapper to ensure (force?) that mandatory middlewares are acutally used

/\A(?:https?:\/\/)?localhost(?::\d+)?\z/.freeze
CORS_RO_METHODS =
%i[get head options].freeze
CORS_BATCH_METHODS =
%i[post head options].freeze
CORS_RW_METHODS =
%i[get post put patch delete head options].freeze