Class: Arpie::HTTPClientTestProtocol

Inherits:
HTTPTestProtocol show all
Defined in:
lib/arpie/xmlrpc.rb

Constant Summary

Constants inherited from HTTPTestProtocol

Arpie::HTTPTestProtocol::CAN_SEPARATE_MESSAGES

Constants inherited from Protocol

Protocol::CAN_SEPARATE_MESSAGES

Constants included from Arpie

MTU

Instance Attribute Summary

Attributes inherited from Protocol

#metabuffer, #stowbuffer

Instance Method Summary collapse

Methods inherited from HTTPTestProtocol

#from

Methods inherited from Protocol

#again!, #assemble, #assemble!, #from

Methods included from Arpie

#bogon!, #incomplete!

Instance Method Details

#to(object) {|"GET / HTTP/1.[01]\r\nContent-Length: #{object.size}\r\n\r\n" + object| ... } ⇒ Object

Yields:

  • ("GET / HTTP/1.[01]\r\nContent-Length: #{object.size}\r\n\r\n" + object)


95
96
97
# File 'lib/arpie/xmlrpc.rb', line 95

def to object
  yield "GET / HTTP/1.[01]\r\nContent-Length: #{object.size}\r\n\r\n" + object
end