Class: TestHeaderAndContentProtocol::SimpleTest
- Inherits:
-
EventMachine::Protocols::HeaderAndContentProtocol
- Object
- EventMachine::Connection
- EventMachine::Protocols::HeaderAndContentProtocol
- TestHeaderAndContentProtocol::SimpleTest
- Defined in:
- lib/ext/eventmachine-0.12.10/tests/test_hc.rb
Constant Summary
Constants inherited from EventMachine::Protocols::HeaderAndContentProtocol
EventMachine::Protocols::HeaderAndContentProtocol::ContentLengthPattern
Constants included from EventMachine::Protocols::LineText2
EventMachine::Protocols::LineText2::MaxBinaryLength, EventMachine::Protocols::LineText2::MaxLineLength
Instance Attribute Summary collapse
-
#first_header ⇒ Object
readonly
Returns the value of attribute first_header.
-
#my_headers ⇒ Object
readonly
Returns the value of attribute my_headers.
-
#request ⇒ Object
readonly
Returns the value of attribute request.
Attributes inherited from EventMachine::Connection
Instance Method Summary collapse
- #receive_first_header_line(hdr) ⇒ Object
- #receive_headers(hdrs) ⇒ Object
- #receive_request(hdrs, content) ⇒ Object
Methods inherited from EventMachine::Protocols::HeaderAndContentProtocol
#headers_2_hash, headers_2_hash, #initialize, #receive_binary_data, #receive_line
Methods included from EventMachine::Protocols::LineText2
#receive_binary_data, #receive_data, #receive_end_of_binary_data, #receive_line, #set_binary_mode, #set_delimiter, #set_line_mode, #set_text_mode, #unbind
Methods inherited from EventMachine::Connection
#associate_callback_target, #close_connection, #close_connection_after_writing, #comm_inactivity_timeout, #comm_inactivity_timeout=, #connection_completed, #detach, #error?, #get_outbound_data_size, #get_peer_cert, #get_peername, #get_pid, #get_sock_opt, #get_sockname, #get_status, #initialize, new, #notify_readable=, #notify_readable?, #notify_writable=, #notify_writable?, #pause, #paused?, #pending_connect_timeout, #pending_connect_timeout=, #post_init, #proxy_incoming_to, #proxy_target_unbound, #receive_data, #reconnect, #resume, #send_data, #send_datagram, #send_file_data, #set_comm_inactivity_timeout, #set_pending_connect_timeout, #ssl_handshake_completed, #ssl_verify_peer, #start_tls, #stop_proxying, #stream_file_data, #unbind
Constructor Details
This class inherits a constructor from EventMachine::Protocols::HeaderAndContentProtocol
Instance Attribute Details
#first_header ⇒ Object (readonly)
Returns the value of attribute first_header.
37 38 39 |
# File 'lib/ext/eventmachine-0.12.10/tests/test_hc.rb', line 37 def first_header @first_header end |
#my_headers ⇒ Object (readonly)
Returns the value of attribute my_headers.
37 38 39 |
# File 'lib/ext/eventmachine-0.12.10/tests/test_hc.rb', line 37 def my_headers @my_headers end |
#request ⇒ Object (readonly)
Returns the value of attribute request.
37 38 39 |
# File 'lib/ext/eventmachine-0.12.10/tests/test_hc.rb', line 37 def request @request end |
Instance Method Details
#receive_first_header_line(hdr) ⇒ Object
39 40 41 42 |
# File 'lib/ext/eventmachine-0.12.10/tests/test_hc.rb', line 39 def receive_first_header_line hdr @first_header ||= [] @first_header << hdr end |
#receive_headers(hdrs) ⇒ Object
43 44 45 46 |
# File 'lib/ext/eventmachine-0.12.10/tests/test_hc.rb', line 43 def receive_headers hdrs @my_headers ||= [] @my_headers << hdrs end |
#receive_request(hdrs, content) ⇒ Object
47 48 49 50 |
# File 'lib/ext/eventmachine-0.12.10/tests/test_hc.rb', line 47 def receive_request hdrs, content @request ||= [] @request << [hdrs, content] end |