module Roda::RodaPlugins::Head::RequestMethods

Public Instance Methods

is_get?() click to toggle source

Consider HEAD requests as GET requests.

Calls superclass method
# File lib/roda/plugins/head.rb, line 40
def is_get?
  super || head?
end

Private Instance Methods

match_method(method) click to toggle source

If the current request is a HEAD request, match if one of the given methods is a GET request.

Calls superclass method
# File lib/roda/plugins/head.rb, line 48
def match_method(method)
  super || (!method.is_a?(Array) && head? && method.to_s.upcase == 'GET')
end