protocol-http 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/protocol/http/error.rb +0 -23
- data/lib/protocol/http/version.rb +1 -1
- data/protocol-http.gemspec +2 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f51612225b6b4d55c2468ad41603450e620bb2a01d675a330c51ea412d91ecf
|
4
|
+
data.tar.gz: d3b907303a51a1a12961342dc9feb5f19f76c75092c26dd4b6224d494d0d9e91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0a8210b3174cdd5ff2a1da7ce76aea33754521fdc34ddc87b82f83feb7d57bf189b7cad76c201155c6f681722b97757596db737f7b399436b8a4fa565e6fed7
|
7
|
+
data.tar.gz: 3a3a098e8c021fb38bdca588cb62d9b4122d47eeffa022809b39dbef8013ffff4506a3b0985da0320501869313bc8e29ac9097c66998ab38d45a376da8b7019f
|
data/lib/protocol/http/error.rb
CHANGED
@@ -23,28 +23,5 @@ module Protocol
|
|
23
23
|
module HTTP
|
24
24
|
class Error < StandardError
|
25
25
|
end
|
26
|
-
|
27
|
-
# The request was invalid/malformed in some way.
|
28
|
-
class BadRequest < Error
|
29
|
-
end
|
30
|
-
|
31
|
-
# Raised if connection header is missing or invalid indicating that
|
32
|
-
# this is an invalid HTTP 2.0 request - no frames are emitted and the
|
33
|
-
# connection must be aborted.
|
34
|
-
class HandshakeError < Error
|
35
|
-
end
|
36
|
-
|
37
|
-
# Raised by stream or connection handlers, results in GOAWAY frame
|
38
|
-
# which signals termination of the current connection. You *cannot*
|
39
|
-
# recover from this exception, or any exceptions subclassed from it.
|
40
|
-
class ProtocolError < Error
|
41
|
-
def initialize(message, code = nil)
|
42
|
-
super(message)
|
43
|
-
|
44
|
-
@code = code
|
45
|
-
end
|
46
|
-
|
47
|
-
attr :code
|
48
|
-
end
|
49
26
|
end
|
50
27
|
end
|
data/protocol-http.gemspec
CHANGED
@@ -9,6 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
|
10
10
|
spec.summary = "Provides abstractions to handle HTTP protocols."
|
11
11
|
spec.homepage = "https://github.com/socketry/protocol-http"
|
12
|
+
spec.license = "MIT"
|
12
13
|
|
13
14
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
14
15
|
f.match(%r{^(test|spec|features)/})
|
@@ -19,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
19
20
|
spec.require_paths = ["lib"]
|
20
21
|
|
21
22
|
spec.add_development_dependency "covered"
|
22
|
-
spec.add_development_dependency "bundler"
|
23
|
+
spec.add_development_dependency "bundler"
|
23
24
|
spec.add_development_dependency "rake", "~> 10.0"
|
24
25
|
spec.add_development_dependency "rspec", "~> 3.0"
|
25
26
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: protocol-http
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -90,7 +90,8 @@ files:
|
|
90
90
|
- lib/protocol/http/version.rb
|
91
91
|
- protocol-http.gemspec
|
92
92
|
homepage: https://github.com/socketry/protocol-http
|
93
|
-
licenses:
|
93
|
+
licenses:
|
94
|
+
- MIT
|
94
95
|
metadata: {}
|
95
96
|
post_install_message:
|
96
97
|
rdoc_options: []
|