http-hpack 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/http/hpack/decompressor.rb +5 -5
- data/lib/http/hpack/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8687aae9e89014c4019f3794214ceafd6ddfa5de072ca0e0e1f5681655d9922
|
4
|
+
data.tar.gz: '08dbfa364d65bc09fcfd18a4f083f60103eb240011996d1d35aee640921093db'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '02419d182a23af4393aeaa285386ee7fab0a0c6e7126e8495a7e126da87e80bd38e553154937b95b533a89659f101c1b89b6ab54b4cbac45b2ec51fdf5c5dac6'
|
7
|
+
data.tar.gz: 5ff4ee9bef4d3bfd3dffd1f823f9728d3d4850d744f8b5521a4433a2f647306afe8204e7cbdad9753f335ddc3d1792691d1d4227ee0cf82b78e481c5e8a39526
|
data/README.md
CHANGED
@@ -54,7 +54,7 @@ decompressor.decode
|
|
54
54
|
Released under the MIT license.
|
55
55
|
|
56
56
|
Copyright, 2018, by [Samuel G. D. Williams](http://www.codeotaku.com/samuel-williams).
|
57
|
-
|
57
|
+
Copyright, 2013, by Ilya Grigorik.
|
58
58
|
|
59
59
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
60
60
|
of this software and associated documentation files (the "Software"), to deal
|
@@ -140,14 +140,14 @@ module HTTP
|
|
140
140
|
#
|
141
141
|
# @param buffer [Buffer]
|
142
142
|
# @return [Array] +[[name, value], ...]+
|
143
|
-
def decode
|
144
|
-
list = []
|
145
|
-
|
143
|
+
def decode(list = [])
|
146
144
|
while !end?
|
147
|
-
|
145
|
+
if pair = @context.decode(read_header)
|
146
|
+
list << pair
|
147
|
+
end
|
148
148
|
end
|
149
149
|
|
150
|
-
list
|
150
|
+
return list
|
151
151
|
end
|
152
152
|
end
|
153
153
|
end
|
data/lib/http/hpack/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: http-hpack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|