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.
Files changed (39) hide show
  1. checksums.yaml +7 -0
  2. data/.github/workflows/linux.yml +23 -0
  3. data/.github/workflows/windows.yml +23 -0
  4. data/.gitignore +5 -4
  5. data/.gitmodules +2 -2
  6. data/README.md +2 -2
  7. data/Rakefile +4 -2
  8. data/ext/ruby_http_parser/extconf.rb +1 -1
  9. data/ext/ruby_http_parser/org/ruby_http_parser/RubyHttpParser.java +86 -52
  10. data/ext/ruby_http_parser/ruby_http_parser.c +53 -7
  11. data/ext/ruby_http_parser/vendor/http-parser/AUTHORS +37 -1
  12. data/ext/ruby_http_parser/vendor/http-parser/LICENSE-MIT +1 -5
  13. data/ext/ruby_http_parser/vendor/http-parser/Makefile +110 -8
  14. data/ext/ruby_http_parser/vendor/http-parser/README.md +105 -37
  15. data/ext/ruby_http_parser/vendor/http-parser/bench.c +128 -0
  16. data/ext/ruby_http_parser/vendor/http-parser/contrib/parsertrace.c +157 -0
  17. data/ext/ruby_http_parser/vendor/http-parser/contrib/url_parser.c +47 -0
  18. data/ext/ruby_http_parser/vendor/http-parser/http_parser.c +892 -510
  19. data/ext/ruby_http_parser/vendor/http-parser/http_parser.gyp +34 -2
  20. data/ext/ruby_http_parser/vendor/http-parser/http_parser.h +198 -77
  21. data/ext/ruby_http_parser/vendor/http-parser/test.c +1781 -201
  22. data/ext/ruby_http_parser/vendor/http-parser-java/http_parser.c +271 -154
  23. data/ext/ruby_http_parser/vendor/http-parser-java/http_parser.h +48 -61
  24. data/ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/HTTPMethod.java +5 -3
  25. data/ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/ParserSettings.java +37 -104
  26. data/ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/lolevel/HTTPParser.java +116 -101
  27. data/ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/lolevel/ParserSettings.java +9 -5
  28. data/ext/ruby_http_parser/vendor/http-parser-java/src/test/http_parser/lolevel/Message.java +1 -1
  29. data/ext/ruby_http_parser/vendor/http-parser-java/test.c +579 -153
  30. data/http_parser.rb.gemspec +14 -9
  31. data/spec/parser_spec.rb +177 -99
  32. data/spec/support/requests.json +2 -2
  33. data/spec/support/responses.json +20 -0
  34. data/tasks/spec.rake +1 -1
  35. metadata +131 -162
  36. data/Gemfile.lock +0 -39
  37. data/ext/ruby_http_parser/vendor/http-parser/CONTRIBUTIONS +0 -4
  38. data/ext/ruby_http_parser/vendor/http-parser-java/src/impl/http_parser/HTTPHeadersCompleteCallback.java +0 -13
  39. 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,4 +0,0 @@
1
- Contributors must agree to the Contributor License Agreement before patches
2
- can be accepted.
3
-
4
- http://spreadsheets2.google.com/viewform?hl=en&formkey=dDJXOGUwbzlYaWM4cHN1MERwQS1CSnc6MQ
@@ -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
- }