class ApacheCrunch::ReqheaderToken

A token based on a request header.

Public Instance Methods

_header_name_to_token_name(header_name) click to toggle source

Lowercases header name and turns hyphens into underscores

# File lib/format_token.rb, line 62
def _header_name_to_token_name(header_name)
    ("reqheader_" + header_name.downcase().gsub("-", "_")).to_sym
end
captured?() click to toggle source
# File lib/format_token.rb, line 58
def captured?; true; end
derivation_rule() click to toggle source
# File lib/format_token.rb, line 59
def derivation_rule; NullDerivationRule.new; end
name() click to toggle source
# File lib/format_token.rb, line 56
def name; @_name; end
populate!(header_name) click to toggle source
# File lib/format_token.rb, line 52
def populate!(header_name)
    @_name = _header_name_to_token_name(header_name)
end
regex() click to toggle source
# File lib/format_token.rb, line 57
def regex; '[^"]*'; end