Sha256: 9e080fd881e5eadc980a443fa9c5ab0cd0dd2bcc28ccc9dc1439136d6b2be1e3
Contents?: true
Size: 575 Bytes
Versions: 4
Compression:
Stored size: 575 Bytes
Contents
require 'lz4-ruby' module Lens module Compression module Gzip def self.compress(data) GzipUtil.gzip(data) end def self.headers { 'Content-Type' => 'gzip/json' } end end module LZ4 def self.compress(data) ::LZ4::compress(data) end def self.headers { 'Content-Type' => 'lz4/json' } end end module LZ4HC def self.compress(data) ::LZ4::compressHC(data) end def self.headers { 'Content-Type' => 'lz4hc/json' } end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
lens-0.0.10 | lib/lens/compression.rb |
lens-0.0.9 | lib/lens/compression.rb |
lens-0.0.8.2 | lib/lens/compression.rb |
lens-0.0.8 | lib/lens/compression.rb |