lib/async/http/protocol/http1/connection.rb in async-http-0.81.0 vs lib/async/http/protocol/http1/connection.rb in async-http-0.82.0
- old
+ new
@@ -39,20 +39,9 @@
def http2?
false
end
- def read_line?
- @stream.read_until(CRLF)
- rescue => error
- # Bascially, any error will cause the connection to be closed:
- return nil
- end
-
- def read_line
- @stream.read_until(CRLF) or raise EOFError, "Could not read line!"
- end
-
def peer
@stream.io
end
attr :count