http_parser.rb 0.6.0.beta.1 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.github/workflows/linux.yml +23 -0
- data/.github/workflows/windows.yml +23 -0
- data/.gitignore +5 -4
- data/.gitmodules +2 -2
- data/README.md +2 -2
- data/Rakefile +4 -2
- data/ext/ruby_http_parser/extconf.rb +1 -1
- data/ext/ruby_http_parser/org/ruby_http_parser/RubyHttpParser.java +86 -52
- data/ext/ruby_http_parser/ruby_http_parser.c +53 -7
- data/ext/ruby_http_parser/vendor/http-parser/AUTHORS +37 -1
- data/ext/ruby_http_parser/vendor/http-parser/LICENSE-MIT +1 -5
- data/ext/ruby_http_parser/vendor/http-parser/Makefile +110 -8
- data/ext/ruby_http_parser/vendor/http-parser/README.md +105 -37
- data/ext/ruby_http_parser/vendor/http-parser/bench.c +128 -0
- data/ext/ruby_http_parser/vendor/http-parser/contrib/parsertrace.c +157 -0
- data/ext/ruby_http_parser/vendor/http-parser/contrib/url_parser.c +47 -0
- data/ext/ruby_http_parser/vendor/http-parser/http_parser.c +892 -510
- data/ext/ruby_http_parser/vendor/http-parser/http_parser.gyp +34 -2
- data/ext/ruby_http_parser/vendor/http-parser/http_parser.h +198 -77
- data/ext/ruby_http_parser/vendor/http-parser/test.c +1781 -201
- data/ext/ruby_http_parser/vendor/http-parser-java/http_parser.c +271 -154
- data/ext/ruby_http_parser/vendor/http-parser-java/http_parser.h +48 -61
- data/ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/HTTPMethod.java +5 -3
- data/ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/ParserSettings.java +37 -104
- data/ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/lolevel/HTTPParser.java +116 -101
- data/ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/lolevel/ParserSettings.java +9 -5
- data/ext/ruby_http_parser/vendor/http-parser-java/src/test/http_parser/lolevel/Message.java +1 -1
- data/ext/ruby_http_parser/vendor/http-parser-java/test.c +579 -153
- data/http_parser.rb.gemspec +14 -9
- data/spec/parser_spec.rb +177 -99
- data/spec/support/requests.json +2 -2
- data/spec/support/responses.json +20 -0
- data/tasks/spec.rake +1 -1
- metadata +131 -162
- data/Gemfile.lock +0 -39
- data/ext/ruby_http_parser/vendor/http-parser/CONTRIBUTIONS +0 -4
- data/ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/HTTPHeadersCompleteCallback.java +0 -13
- data/ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/lolevel/HTTPHeadersCompleteCallback.java +0 -12
data/Gemfile.lock
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
http_parser.rb (0.5.3)
|
5
|
-
|
6
|
-
GEM
|
7
|
-
remote: http://rubygems.org/
|
8
|
-
specs:
|
9
|
-
benchmark_suite (0.8.0)
|
10
|
-
diff-lcs (1.1.2)
|
11
|
-
ffi (1.0.11)
|
12
|
-
ffi (1.0.11-java)
|
13
|
-
json (1.5.1)
|
14
|
-
json (1.5.1-java)
|
15
|
-
rake (0.9.2)
|
16
|
-
rake-compiler (0.7.9)
|
17
|
-
rake
|
18
|
-
rspec (2.4.0)
|
19
|
-
rspec-core (~> 2.4.0)
|
20
|
-
rspec-expectations (~> 2.4.0)
|
21
|
-
rspec-mocks (~> 2.4.0)
|
22
|
-
rspec-core (2.4.0)
|
23
|
-
rspec-expectations (2.4.0)
|
24
|
-
diff-lcs (~> 1.1.2)
|
25
|
-
rspec-mocks (2.4.0)
|
26
|
-
yajl-ruby (1.1.0)
|
27
|
-
|
28
|
-
PLATFORMS
|
29
|
-
java
|
30
|
-
ruby
|
31
|
-
|
32
|
-
DEPENDENCIES
|
33
|
-
benchmark_suite
|
34
|
-
ffi
|
35
|
-
http_parser.rb!
|
36
|
-
json (>= 1.4.6)
|
37
|
-
rake-compiler (>= 0.7.9)
|
38
|
-
rspec (>= 2.0.1)
|
39
|
-
yajl-ruby (>= 0.8.1)
|
@@ -1,13 +0,0 @@
|
|
1
|
-
package http_parser;
|
2
|
-
|
3
|
-
/**
|
4
|
-
* Special interface for headers_complete callback.
|
5
|
-
* This is somewhat different than other callbacks because if the user returns 1, we
|
6
|
-
* will interpret that as saying that this message has no body. This
|
7
|
-
* is needed for the annoying case of receiving a response to a HEAD
|
8
|
-
* request.
|
9
|
-
*/
|
10
|
-
public abstract class HTTPHeadersCompleteCallback extends HTTPCallback
|
11
|
-
implements http_parser.lolevel.HTTPHeadersCompleteCallback{
|
12
|
-
|
13
|
-
}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
package http_parser.lolevel;
|
2
|
-
|
3
|
-
/**
|
4
|
-
* Special interface for headers_complete callback.
|
5
|
-
* This is somewhat different than other callbacks because if the user returns 1, we
|
6
|
-
* will interpret that as saying that this message has no body. This
|
7
|
-
* is needed for the annoying case of receiving a response to a HEAD
|
8
|
-
* request.
|
9
|
-
*/
|
10
|
-
public interface HTTPHeadersCompleteCallback extends HTTPCallback{
|
11
|
-
|
12
|
-
}
|