Method: HTTPX::Plugins::Compression::Encoder#each
- Defined in:
- lib/httpx/plugins/compression.rb
#each(&blk) ⇒ Object
114 115 116 117 118 119 120 121 122 |
# File 'lib/httpx/plugins/compression.rb', line 114 def each(&blk) return enum_for(__method__) unless block_given? unless @buffer.size.zero? @buffer.rewind return @buffer.each(&blk) end deflate(&blk) end |