Class: Tep::Http::FramedResp

Inherits:
Object
  • Object
show all
Defined in:
lib/tep/http.rb

Overview

Result of recv_framed: the raw bytes, whether the body was cleanly Content-Length-framed (so the socket sits at a clean boundary and can be pooled), and whether the peer asked to close.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFramedResp

Returns a new instance of FramedResp.



536
537
538
539
540
# File 'lib/tep/http.rb', line 536

def initialize
  @raw          = ""
  @framed_clean = false
  @conn_close   = false
end

Instance Attribute Details

#conn_closeObject

Returns the value of attribute conn_close.



535
536
537
# File 'lib/tep/http.rb', line 535

def conn_close
  @conn_close
end

#framed_cleanObject

Returns the value of attribute framed_clean.



535
536
537
# File 'lib/tep/http.rb', line 535

def framed_clean
  @framed_clean
end

#rawObject

Returns the value of attribute raw.



535
536
537
# File 'lib/tep/http.rb', line 535

def raw
  @raw
end