Module: Roda::RodaPlugins::BridgetownServer::RequestMethods

Defined in:
lib/roda/plugins/bridgetown_server.rb

Instance Method Summary collapse

Instance Method Details

#bridgetownObject

Starts up the Bridgetown routing system



132
133
134
# File 'lib/roda/plugins/bridgetown_server.rb', line 132

def bridgetown
  Bridgetown::Rack::Routes.start!(scope)
end

#cookiesObject

Monkeypatch Roda/Rack's Request object so it returns a hash which allows for indifferent access



126
127
128
129
# File 'lib/roda/plugins/bridgetown_server.rb', line 126

def cookies
  # TODO: maybe replace with a simpler hash that offers an overloaded `[]` method
  _previous_roda_cookies.with_indifferent_access
end