class EventMachine::Protocols::HttpClient
def parse_response_line
It's an opportunity to throw an exception or trigger other exceptional
We get called here when we have received an HTTP response line.
def parse_response_line if @headers.first =~ /\AHTTP\/1\.[01] ([\d]{3})/ @status = $1.to_i else set_deferred_status :failed, { :status => 0 # crappy way of signifying an unrecognized response. TODO, find a better way to do this. } close_connection end end