Method: H2::Stream#body
- Defined in:
- lib/h2/stream.rb
#body ⇒ String
Returns response headers (blocks).
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 |
# File 'lib/h2/stream.rb', line 104 def body if @eventsource loop do event = @body.pop break if event == :close event = ::Zlib.gunzip event if @gzip event = ::Zlib.inflate event if @deflate yield event end else block! @body end end |