Class: Net::HTTP::Server::Parser

Inherits:
Parslet::Parser
  • Object
show all
Defined in:
lib/net/http/server/parser.rb

Overview

Inspired by:

Instance Method Summary collapse

Instance Method Details

#charset(*chars) ⇒ Object (protected)

Creates a matcher for the given characters.

Parameters:

  • chars (Array<String>)

    The characters to match.



144
145
146
# File 'lib/net/http/server/parser.rb', line 144

def charset(*chars)
  match[chars.map { |c| Regexp.escape(c) }.join]
end