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

Since:

  • 2.2.0

Defined Under Namespace

Classes: Headers, Request, Response

Constant Summary collapse

VERBS =

Valid HTTP Verbs

Since:

  • 2.2.0

%w[GET HEAD POST PUT DELETE CONNECT OPTIONS TRACE PATCH].freeze
REQUEST_REGEX =

Identifiable HTTP request regular expression.

Since:

  • 2.2.0

Regexp.new("^(#{VERBS.dup.join('|')})\\s+\\S+\\s+HTTP/1.1")