Sha256: cc46f86c44da0d9631f70abcd02537cc7c277d915b78dbafbdee8cdfac376cae

Contents?: true

Size: 367 Bytes

Versions: 17

Compression:

Stored size: 367 Bytes

Contents

module HTTPX
  module Transcoder
    class Inflater
      def initialize(bytesize)
        @bytesize = bytesize
      end

      def call(chunk)
        buffer = @inflater.inflate(chunk)
        @bytesize -= chunk.bytesize
        if @bytesize <= 0
          buffer << @inflater.finish
          @inflater.close
        end
        buffer
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
httpx-1.3.4 lib/httpx/transcoder/utils/inflater.rb
httpx-1.3.3 lib/httpx/transcoder/utils/inflater.rb
httpx-1.3.2 lib/httpx/transcoder/utils/inflater.rb
httpx-1.3.1 lib/httpx/transcoder/utils/inflater.rb
httpx-1.3.0 lib/httpx/transcoder/utils/inflater.rb
httpx-1.2.6 lib/httpx/transcoder/utils/inflater.rb
httpx-1.2.4 lib/httpx/transcoder/utils/inflater.rb
httpx-1.2.3 lib/httpx/transcoder/utils/inflater.rb
httpx-1.2.2 lib/httpx/transcoder/utils/inflater.rb
httpx-1.2.1 lib/httpx/transcoder/utils/inflater.rb
httpx-1.2.0 lib/httpx/transcoder/utils/inflater.rb
httpx-1.1.5 lib/httpx/transcoder/utils/inflater.rb
httpx-1.1.4 lib/httpx/transcoder/utils/inflater.rb
httpx-1.1.3 lib/httpx/transcoder/utils/inflater.rb
httpx-1.1.2 lib/httpx/transcoder/utils/inflater.rb
httpx-1.1.1 lib/httpx/transcoder/utils/inflater.rb
httpx-1.1.0 lib/httpx/transcoder/utils/inflater.rb