lib/packetgen/header/http/headers.rb in packetgen-3.3.3 vs lib/packetgen/header/http/headers.rb in packetgen-4.0.0
- old
+ new
@@ -11,11 +11,11 @@
# @since 2.2.0
module HTTP
# @abstract Base class for HTTP headers.
# @author Kent 'picat' Gruber
class Headers
- include Types::Fieldable
+ include BinStruct::Structable
# Underlying Headers data (or nil).
# @return [Hash, nil]
attr_reader :data
alias to_h data
@@ -74,10 +74,10 @@
def to_human
@data
end
# Read human-readable data to populate header data.
- # @param [String, Hash] data
+ # @param [Hash] data
# @return [self]
def from_human(data)
read(data)
end