class HTTP::Connection
def read_headers!
-
(ResponseHeaderError)
- when unable to read response headers
Returns:
-
(void)
-
def read_headers! until @parser.headers? result = read_more(BUFFER_SIZE) raise ResponseHeaderError, "couldn't read response headers" if result == :eof end set_keep_alive end