lib/roda/plugins/header_matchers.rb
# Match if the given uppercase key is present inside the environment.
Match if the given uppercase key is present inside the environment.
Match if the given uppercase key is present inside the environment .
def match_header(key)
          key = key.upcase.tr("-","_")
          unless key == "CONTENT_TYPE" || key == "CONTENT_LENGTH"
            key = "HTTP_#{key}"
          end
          if v = @env[key]
            @captures << v
          end
        end
def match_header ( key ) key = key . upcase . tr ( "-" , "_" ) unless key == "CONTENT_TYPE" || key == "CONTENT_LENGTH" key = "HTTP_#{key}" end if v = @env [ key ] @captures << v end end
Match if the given uppercase key is present inside the environment.
Match if the given uppercase key is present inside the environment .
key