Method: HTTP::Connection#finish_response

Defined in:
lib/http/connection.rb

#finish_responsevoid

This method returns an undefined value.

Callback for when we've reached the end of a response



120
121
122
123
124
125
126
127
128
# File 'lib/http/connection.rb', line 120

def finish_response
  close unless keep_alive?

  @parser.reset
  @socket.reset_counter if @socket.respond_to?(:reset_counter)
  reset_timer

  @pending_response = false
end