Olivier Mengué
e557b62744
src: support LINK/UNLINK (RFC 2068, draft-snell-link-method)
...
Add support for HTTP methods LINK and UNLINK originally defined in RFC2068
section 19.6.2.2, but with semantic added in a Internet draft.
https://tools.ietf.org/html/rfc2068#section-19.6.1.2
https://tools.ietf.org/html/draft-snell-link-method-12
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Fedor Induty <fedor@indutny.com>
PR-URL: https://github.com/nodejs/http-parser/pull/267
9 years ago
Sebastian Philipp
e01811e7f4
src: fixed compile error C2143 for vs2012
...
PR-URL: https://github.com/joyent/http-parser/pull/261
Reviewed-By: Fedor Indutny <fedor@indutny.com>
9 years ago
Andrew Udvare
b36c2a9ece
header: treat Wine like MinGW
...
PR-URL: https://github.com/joyent/http-parser/pull/259
Reviewed-By: Fedor Indutny <fedor@indutny.com>
9 years ago
Ivan Enderlin
eb5e9928b4
src: support ACL (WebDAV, RFC3744, Section 8.1).
...
PR-URL: https://github.com/joyent/http-parser/pull/260
Reviewed-By: Fedor Indutny <fedor@indutny.com>
9 years ago
Ivan Enderlin
4f69be2221
readme: update WebSocket link to RFC6455
...
PR-URL: https://github.com/joyent/http-parser/pull/240
Reviewed-By: Fedor Indutny <fedor@indutny.com>
9 years ago
Ivan Enderlin
b5bcca8f92
test: `SEARCH`, `PURGE` and `MKCALENDAR`
...
These methods are defined in `http_parser.h` but not tested.
PR-URL: https://github.com/joyent/http-parser/pull/241
Reviewed-By: Fedor Indutny <fedor@indutny.com>
9 years ago
Ivan Enderlin
8b1d652322
src: support BIND/REBIND/UNBIND (WebDAV, RFC5842)
...
Support BIND/REBIND/UNBIND methods, see sections 4, 5, 6 of
RFC5842.
PR-URL: https://github.com/joyent/http-parser/pull/242
Reviewed-By: Fedor Indutny <fedor@indutny.com>
9 years ago
Tatsuhiro Tsujikawa
7d75dd7325
src: support IPv6 Zone ID as per RFC 6874
...
IPv6 scoped address contains Zone ID, which is appended to IPv6
address after '%' separator. RFC 6874 says that Zone ID after '%'
must consist of 1*(unreserved or pct-encoded). This commit adds this
IPv6 Zone ID support.
PR-URL: https://github.com/joyent/http-parser/pull/253
Reviewed-By: Fedor Indutny <fedor@indutny.com>
10 years ago
dlmeetei@gmail.com
ab0b162ef6
src: use ARRAY_SIZE instead of sizeof()
...
PR-URL: https://github.com/joyent/http-parser/pull/252
Reviewed-By: Fedor Indutny <fedor@indutny.com>
10 years ago
Jan Schär
39ff0975c2
src: remove double check
...
This is already included in `http_message_needs_eof`.
PR-URL: https://github.com/joyent/http-parser/pull/248
Reviewed-By: Fedor Indutny <fedor@indutny.com>
10 years ago
Daniel Knoppel (Phusion)
f6f436a12e
src: fix invalid memory access in http_parse_host
...
http_parse_host() depends on `u->field_data[UF_HOST]`, but this
if() allowed the method to be called if only
`u->field_data[UF_SCHEMA]` was set, resulting in use of
unintialized pointers.
PR-URL: https://github.com/joyent/http-parser/pull/246
Reviewed-By: Fedor Indutny <fedor@indutny.com>
10 years ago
Guo Xiao
2896229a13
make: fix dynamic library extension for OS X
10 years ago
Fedor Indutny
39c2c1e573
Bump version to 2.5.0
10 years ago
Kjell Schubert
dff604db20
src: support body in Upgrade requests
...
Invoke message_complete cb for upgrade with body.
(D1364677 + D1380182 orig author afrind@fb.com )
Fix : #234
PR-URL: https://github.com/joyent/http-parser/pull/235
Reviewed-By: Fedor Indutny <fedor@indutny.com>
10 years ago
Kjell Schubert
d7675453a6
src: callbacks chunk boundaries: header/complete
...
(Proxygen fork merge D508755 D521404, orig author simpkins@fb.com )
Fix : #231
PR-URL: https://github.com/joyent/http-parser/pull/233
Reviewed-By: Fedor Indutny <fedor@indutny.com>
10 years ago
Kjell Schubert
2872cb7e6a
test: regression test for incomplete/corrupted hdr
...
Add regression test that verifies that old bugs regarding corrupted
and incomplete headers are fixed.
(D512233 + D570451, orig authors brianp@fb.com + jtarnawski@fb.com )
PR-URL: https://github.com/joyent/http-parser/pull/236
Reviewed-By: Fedor Indutny <fedor@indutny.com>
10 years ago
Umorrian
5d414fcb4b
makefile: add un/install targets
...
Add install, install-strip and uninstall targets, make DESTDIR usable.
PR-URL: https://github.com/joyent/http-parser/pull/228
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
10 years ago
Jay Satiro
d547f3b1a9
url_parser: remove mixed declarations
...
(dump_url)
- Remove erroneous quote in output.
(main)
- Remove mixed declarations for compatibility with pre-c99 compilers
like msvc.
Reviewed-By: Fedor Indutny <fedor@indutny.com>
PR-URL: https://github.com/joyent/http-parser/pull/224
10 years ago
Fedor Indutny
7ecf775d71
src: partially revert 959f4cb
to fix nread value
...
With 959f4cb
on reexecution - header byte was accounted twice, leading
to the incorrect `parser->nread` value.
Fix : #220
PR-URL: https://github.com/joyent/http-parser/pull/221
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
10 years ago
Fedor Indutny
7ba312397c
header: fix field sizes
...
The flags enum does not fit into 6 bits anymore.
Fix : #218
PR-URL: https://github.com/joyent/http-parser/pull/219
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
10 years ago
Romain Giraud
53063b780b
Add function to initialize http_parser_settings
...
PR-URL: https://github.com/joyent/http-parser/pull/215
Reviewed-By: Fedor Indutny <fedor@indutny.com>
10 years ago
Fedor Indutny
1b31580893
Bump version to 2.4.2
10 years ago
Fedor Indutny
59569f2125
src: skip lws between `connection` values
...
Fix: https://github.com/iojs/io.js/issues/588
PR-URL: https://github.com/joyent/http-parser/pull/216
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
10 years ago
Fedor Indutny
36f107fa2e
Bump version to 2.4.1
10 years ago
Fedor Indutny
280af6984c
src: fix build on MSVC
...
Do explicit casts from/to enums, convert type of `memchr`'s return value
to `const char*`.
PR-URL: https://github.com/joyent/http-parser/pull/213
Reviewed-By: Bert Belder <bertbelder@gmail.com>
10 years ago
Fedor Indutny
956c8a054a
Bump version to 2.4.0
10 years ago
Akagi201
167dcdfc06
readme: fix typo
...
PR-URL: https://github.com/joyent/http-parser/pull/207
Reviewed-By: Fedor Indutny <fedor@indutny.com>
10 years ago
Fedor Indutny
3f7ef500bd
src: annotate with likely/unlikely
...
Reviewed-By: Fedor Indutny <fedor@indutny.com>
10 years ago
Fedor Indutny
265f9d0edc
bench: add chunked bytes
...
Reviewed-By: Fedor Indutny <fedor@indutny.com>
10 years ago
Jon Kolb
091ebb8778
src: simple Connection header multi-value parsing
...
Reviewed-By: Fedor Indutny <fedor@indutny.com>
PR-URL: https://github.com/joyent/http-parser/pull/100
10 years ago
Fedor Indutny
959f4cb127
src: remove reexecute goto
10 years ago
Fedor Indutny
0097de5895
src: use memchr() in h_general header value
10 years ago
Fedor Indutny
c6097e1d76
src: faster general header value loop
10 years ago
Fedor Indutny
263006044a
src: less loads in header_value loop
10 years ago
Fedor Indutny
0cb0ee672c
src: tighten header field/value loops
10 years ago
Fedor Indutny
6132d1fefa
src: save progress
10 years ago
Fedor Indutny
3f1a05a24c
benchmark: initial
10 years ago
Timothy J Fontaine
94a55d1b38
send travis irc notifications to #node-ci
10 years ago
Alexis La Goutte
5fd51fd59d
Fix warning on test suite found by Clang Analyzer
...
test.c:2210:9: warning: Value stored to 'char_len' is never read
char_len = 2;
^ ~
test.c:2921:3: warning: Value stored to 'pass' is never read
pass &= (parsed == 0);
^ ~~~~~~~~~~~~~
Reviewed-By: Fedor Indutny <fedor@indutny.com>
10 years ago
Jeff Pinner
0b43367131
http_parser: Follow RFC-7230 Sec 3.2.4
...
RFC-7230 Sec 3.2.4 expressly forbids line-folding in header
field-names.
This change no longer allows obsolete line-folding between the
header field-name and the colon. If HTTP_PARSER_STRICT is unset,
the parser still allows space characters.
Reviewed-By: Fedor Indutny <fedor@indutny.com>
10 years ago
Marc O'Morain
11ecb42061
Docs fix
...
Reviewed-By: Fedor Indutny <fedor@indutny.com>
10 years ago
Maciej Małecki
7bbb77467f
doc: add very basic docs for `http_parser_execute`
...
Reviewed-By: Fedor Indutny <fedor@indutny.com>
10 years ago
George Miroshnykov
17ed7deb7c
header: typo fix in a comment
...
Reviewed-By: Fedor Indutny <fedor@indutny.com>
10 years ago
Alexis La Goutte
5b951d74bd
src: fix clang warning
...
Fix http_parser.c:2147:3: warning: Value stored to 'uf' is never
read found by Clang Analyser.
Reviewed-By: Fedor Indutny <fedor@indutny.com>
10 years ago
Helge Heß
1317eeca43
Added support for MKCALENDAR
...
Signed-off-by: Fedor Indutny <fedor@indutny.com>
11 years ago
Mark Koopman
08a2cc36eb
very minor spelling/grammar changes in README.md
...
Signed-off-by: Fedor Indutny <fedor@indutny.com>
11 years ago
Alex Kocharin
158dd3bb22
signing the CLA is no longer a requirement
...
Signed-off-by: Fedor Indutny <fedor@indutny.com>
11 years ago
Rex Feng
8d9e5db981
fix typo in README comment
11 years ago
Alex Butum
d19e12911a
contrib: fixed resource leak in parsertrace
11 years ago
Vinnie Falco
24e2d2d43f
Allow HTTP_MAX_HEADER_SIZE to be defined externally
11 years ago