Class: EventMachine::HttpRequest::FakeHttpClient
- Inherits:
-
EventMachine::HttpClient
- Object
- Connection
- EventMachine::HttpClient
- EventMachine::HttpRequest::FakeHttpClient
- Defined in:
- lib/em-http/mock.rb
Constant Summary
Constants inherited from EventMachine::HttpClient
EventMachine::HttpClient::CONTENT_ENCODING, EventMachine::HttpClient::CONTENT_LENGTH, EventMachine::HttpClient::CRLF, EventMachine::HttpClient::HOST, EventMachine::HttpClient::KEEP_ALIVE, EventMachine::HttpClient::LOCATION, EventMachine::HttpClient::SET_COOKIE, EventMachine::HttpClient::TRANSFER_ENCODING
Constants included from EventMachine::HttpEncoding
EventMachine::HttpEncoding::BASIC_AUTH_ENCODING, EventMachine::HttpEncoding::FIELD_ENCODING, EventMachine::HttpEncoding::HTTP_REQUEST_HEADER
Instance Attribute Summary
Attributes inherited from EventMachine::HttpClient
#errors, #method, #options, #response, #response_header, #uri
Instance Method Summary collapse
Methods inherited from EventMachine::HttpClient
#connection_completed, #dispatch, #normalize_body, #on_body_data, #on_decoded_body_data, #on_error, #on_request_complete, #parse_chunk_header, #parse_header, #parse_response_header, #post_init, #process_body, #process_chunk_body, #process_chunk_footer, #process_response_footer, #receive_data, #send_request_body, #send_request_header, #stream
Methods included from EventMachine::HttpEncoding
#encode_basic_auth, #encode_cookie, #encode_field, #encode_headers, #encode_host, #encode_param, #encode_query, #encode_request, #escape, #munge_header_keys, #unescape
Instance Method Details
#setup(response) ⇒ Object
8 9 10 11 |
# File 'lib/em-http/mock.rb', line 8 def setup(response) receive_data(response) succeed(self) end |
#unbind ⇒ Object
13 14 |
# File 'lib/em-http/mock.rb', line 13 def unbind end |