Sha256: 8e6a3692ec984f4c9382be14d4562755b7c327139b25b40eabe1cf81ea283d32
Contents?: true
Size: 659 Bytes
Versions: 5
Compression:
Stored size: 659 Bytes
Contents
# frozen_string_literal: true # This file is part of PacketGen # See https://github.com/sdaubert/packetgen for more informations # Copyright (C) 2016 Sylvain Daubert <sylvain.daubert@laposte.net> # This program is published under MIT license. module PacketGen module Header # @since 2.2.0 module HTTP # @abstract Collection of useful HTTP verbs. # @author Kent 'picat' Gruber # Valid HTTP Verbs VERBS = %w[GET HEAD POST PUT DELETE CONNECT OPTIONS TRACE PATCH].freeze # Identifiable HTTP request regular expression. REQUEST_REGEX = Regexp.new("^(#{VERBS.dup.join('|')})\\s+\\S+\\s+HTTP/1.1") end end end
Version data entries
5 entries across 5 versions & 1 rubygems