Module: PacketGen::Header::HTTP
- Defined in:
- lib/packetgen/header/http/verbs.rb,
lib/packetgen/header/http/headers.rb,
lib/packetgen/header/http/request.rb,
lib/packetgen/header/http/response.rb
Overview
Defined Under Namespace
Classes: Headers, Request, Response
Constant Summary collapse
- VERBS =
Valid HTTP Verbs
%w[GET HEAD POST PUT DELETE CONNECT OPTIONS TRACE PATCH].freeze
- REQUEST_REGEX =
Identifiable HTTP request regular expression.
Regexp.new("^(#{VERBS.dup.join('|')})\\s+\\S+\\s+HTTP/1.1")