pico_http_parser 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/benchmark/benchmark.rb +13 -5
- data/ext/pico_http_parser/pico_http_parser.c +20 -7
- data/ext/pico_http_parser/picohttpparser/.clang-format +6 -0
- data/ext/pico_http_parser/picohttpparser/Jamfile +7 -0
- data/ext/pico_http_parser/picohttpparser/README.md +92 -0
- data/ext/pico_http_parser/picohttpparser/bench.c +32 -19
- data/ext/pico_http_parser/picohttpparser/picohttpparser.c +509 -342
- data/ext/pico_http_parser/picohttpparser/picohttpparser.h +37 -14
- data/ext/pico_http_parser/picohttpparser/test.c +366 -204
- data/lib/pico_http_parser/version.rb +1 -1
- data/spec/01_simple_spec.rb +0 -3
- metadata +5 -3
data/spec/01_simple_spec.rb
CHANGED
@@ -123,7 +123,6 @@ EOT
|
|
123
123
|
'REQUEST_METHOD' => 'GET',
|
124
124
|
'REQUEST_URI' => '/a/b#c',
|
125
125
|
'QUERY_STRING' => '',
|
126
|
-
'SCRIPT_NAME' => '',
|
127
126
|
'SERVER_PROTOCOL' => 'HTTP/1.0',
|
128
127
|
})
|
129
128
|
end
|
@@ -142,7 +141,6 @@ EOT
|
|
142
141
|
'REQUEST_METHOD' => 'GET',
|
143
142
|
'REQUEST_URI' => '/a/b%23c',
|
144
143
|
'QUERY_STRING' => '',
|
145
|
-
'SCRIPT_NAME' => '',
|
146
144
|
'SERVER_PROTOCOL' => 'HTTP/1.0',
|
147
145
|
})
|
148
146
|
end
|
@@ -157,7 +155,6 @@ EOT
|
|
157
155
|
ret = PicoHTTPParser.parse_http_request(req,env)
|
158
156
|
expect(ret).to eq(req.length)
|
159
157
|
expect(env).to match({
|
160
|
-
'SCRIPT_NAME' => '',
|
161
158
|
'PATH_INFO' => '/a/b',
|
162
159
|
'REQUEST_METHOD' => 'GET',
|
163
160
|
'REQUEST_URI' => '/a/b?c=d#e',
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pico_http_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masahiro Nagano
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -71,9 +71,11 @@ files:
|
|
71
71
|
- benchmark/benchmark.rb
|
72
72
|
- ext/pico_http_parser/extconf.rb
|
73
73
|
- ext/pico_http_parser/pico_http_parser.c
|
74
|
+
- ext/pico_http_parser/picohttpparser/.clang-format
|
74
75
|
- ext/pico_http_parser/picohttpparser/.gitattributes
|
75
76
|
- ext/pico_http_parser/picohttpparser/.gitmodules
|
76
77
|
- ext/pico_http_parser/picohttpparser/.travis.yml
|
78
|
+
- ext/pico_http_parser/picohttpparser/Jamfile
|
77
79
|
- ext/pico_http_parser/picohttpparser/Makefile
|
78
80
|
- ext/pico_http_parser/picohttpparser/README.md
|
79
81
|
- ext/pico_http_parser/picohttpparser/bench.c
|
@@ -106,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
108
|
version: '0'
|
107
109
|
requirements: []
|
108
110
|
rubyforge_project:
|
109
|
-
rubygems_version: 2.
|
111
|
+
rubygems_version: 2.4.5.1
|
110
112
|
signing_key:
|
111
113
|
specification_version: 4
|
112
114
|
summary: Fast HTTP parser using picohttpparser
|