class Protocol::HTTP::Body::Head
Public Class Methods
for(body)
click to toggle source
# File lib/protocol/http/body/head.rb, line 29 def self.for(body) head = self.new(body.length) body.close return head end
new(length)
click to toggle source
# File lib/protocol/http/body/head.rb, line 37 def initialize(length) @length = length end
Public Instance Methods
empty?()
click to toggle source
# File lib/protocol/http/body/head.rb, line 41 def empty? true end
length()
click to toggle source
# File lib/protocol/http/body/head.rb, line 49 def length @length end
ready?()
click to toggle source
# File lib/protocol/http/body/head.rb, line 45 def ready? true end