class Protocol::HTTP::Body::Head
Represents a body suitable for HEAD requests, in other words, a body that is empty and has a known length.
def self.for(body)
def self.for(body) head = self.new(body.length) body.close return head end
def empty?
def empty? true end
def initialize(length)
Initialize the head body with the given length.
def initialize(length) @length = length end
def length
def length @length end
def ready?
def ready? true end