Method: Protocol::HTTP1::Connection#read_response
- Defined in:
- lib/protocol/http1/connection.rb
#read_response(method) ⇒ Object
200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 |
# File 'lib/protocol/http1/connection.rb', line 200 def read_response(method) version, status, reason = read_line.split(/\s+/, 3) status = Integer(status) headers = read_headers @persistent = persistent?(version, method, headers) body = read_response_body(method, status, headers) @count += 1 return version, status, reason, headers, body end |