Project

General

Profile

Feature #14896 ยป response-socket.patch

mudge (Paul Mucur), 07/04/2018 08:42 PM

View differences:

lib/net/http/response.rb
104 104
  # Accept-Encoding header from the user.
105 105
  attr_accessor :decode_content
106 106

  
107
  # The underlying IO socket used when streaming response bodies. Note
108
  # that reading from the socket directly will mean the response will
109
  # *not* contain a (meaningful) body.
110
  attr_reader :socket
111

  
107 112
  def inspect
108 113
    "#<#{self.class} #{@code} #{@message} readbody=#{@read}>"
109 114
  end