lib/protocol/hpack/huffman.rb in protocol-hpack-1.0.0 vs lib/protocol/hpack/huffman.rb in protocol-hpack-1.1.0
- old
+ new
@@ -18,15 +18,13 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
require_relative 'huffman/machine'
+require_relative 'error'
module Protocol
module HPACK
- class CompressionError < RuntimeError
- end
-
# Implementation of huffman encoding for HPACK
#
# - http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-10
class Huffman
BITS_AT_ONCE = 4