Commit Graph

216 Commits (master)

Author SHA1 Message Date
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
Jeff Pinner 0b43367131 http_parser: Follow RFC-7230 Sec 3.2.4
10 years ago
Alexis La Goutte 5b951d74bd src: fix clang warning
10 years ago
Helge Heß 1317eeca43
Added support for MKCALENDAR
11 years ago
Vinnie Falco 24e2d2d43f Allow HTTP_MAX_HEADER_SIZE to be defined externally
11 years ago
David Wragg 76f0f1690f Fix issues around multi-line headers
11 years ago
David Wragg 5d9c382172 Include separating ws when folding header values
11 years ago
Alexis Campailla a252d4eebc fix content-length and chunk-size overflow test
11 years ago
Patrik Stutz d7b938bdca Parse and emit status message of response
11 years ago
Ben Noordhuis f5c779bb85 Update misleading comment.
11 years ago
Ben Noordhuis 547553b090 Further request method check strengthening.
11 years ago
Chris Dickinson c6ee6ada69 Do not accept PUN/GEM methods as PUT/GET.
11 years ago
Ben Noordhuis d3264312e1 Add function http_parser_version().
11 years ago
Tóth Tamás 0938fe599f Add on_status_complete callback.
12 years ago
Corey Richardson 1c7f8cac9e Fix IPv6 address parsing.
12 years ago
Ben Noordhuis 245f6f0078 Remove HTTP_PARSER_DEBUG macro.
12 years ago
BogDan Vatra 1ca7de5258 Add "int http_body_is_final(const http_parser *parser)" method.
12 years ago
Ben Noordhuis ad3b631d4f Turn normal_url_char into a bit array.
12 years ago
Ben Noordhuis add3018ce7 Add bounds check to http_method_str().
12 years ago
Ben Noordhuis 9f92347851 Make http_should_keep_alive() const correct.
12 years ago
Bertrand Paquet a828edaf6a Add a comment
13 years ago
Bertrand Paquet 50faa793f4 Coding style : remove space before ++
13 years ago
Bertrand Paquet 148984cd8d Rename s_req_host* to be compliant with RFC 2396
13 years ago
Bertrand Paquet 7f1b191d6f Minor speed improvment
13 years ago
Bertrand Paquet d2ce562338 Use new state instead of pointer
13 years ago
Bertrand Paquet bb29f43741 Coding style improvment
13 years ago
Bertrand Paquet f6f761596e Small refactoring, add edge cases
13 years ago
Bertrand Paquet 7965096276 User info implementation
13 years ago
Bertrand Paquet ed8475d49f Refactor host parsing to allow basic auth management
13 years ago
Ben Noordhuis b97fdb0513 Don't assert() on whitespace in URL.
13 years ago
Ben Noordhuis 8bec3ea459 Create method_strings array with HTTP_METHOD_MAP macro.
13 years ago
Nathan Rajlich a3373d7627 add support for "SEARCH" request methods
13 years ago
Ben Noordhuis 62110efe7a Support PURGE request method.
13 years ago
David Gwynne 67568421e9 allow extra ? at the beginning of a query_string.
13 years ago
David Gwynne 8da60bc423 implement parsing of v6 addresses and rejection of 0-length host and ports.
13 years ago
David Gwynne 0499525110 Fix http_parser_parse_url for urls like "http://host/path".
13 years ago
Ben Noordhuis c3153bd1a9 Eat CRLF between requests, even on connection:close.
13 years ago
Ben Noordhuis f668e72380 Make content_length unsigned, add overflow checks.
13 years ago
James McLaughlin 03e0d5292a Use "" instead of <> for the http_parser.h include.
13 years ago
Ben Noordhuis 3e626c6cb6 Don't use 'inline'.
13 years ago
Ivo Raisr 2a2f99f9cd http_parser_init does not clear status_code
13 years ago
Andre Caron 051d6fe219 Fixes build on MSVC.
13 years ago
Peter Griess eb04bbe1fa Merge pull request #73 from pgriess/http-10-message-length
13 years ago
Peter Griess d0bb867d1b Implement http_parser_pause().
13 years ago
Peter Griess b115d110a3 Don't wait for EOF on 0-length KA messages.
13 years ago
Peter Griess 248fbc3ab4 Get HTTP/1.1 message length logic working for HTTP/1.0
13 years ago
Peter Griess d7675cd9a6 Add http_parser_parse_url().
13 years ago
Peter Griess 48a4364fdd Remove some chars from tokens[] per RFC.
13 years ago
koichik b47c44d7a6 Fix response body is not read
13 years ago
Felix Geisendörfer 2498961231 Accept HTTP/0.9 responses
13 years ago
Paul Querna f1d48aa31c Move all data to before code to fix http parser for c89.
13 years ago
Fouad Mardini 2b2ba2da1a rename parser->errno to parser->http_errno; conflicts with errno.h where errno is defined as a macro
14 years ago
Peter Griess 53adfacad1 API CHANGE: Remove path, query, fragment CBs.
14 years ago
Peter Griess 49faf2e9cd Merge pull request #53 from pgriess/callback_noclear
14 years ago
Peter Griess 5469827542 Get rid of CALLBACK_NOCLEAR().
14 years ago
Peter Griess 761a5eaeb1 Break out errno into its own field.
14 years ago
Jon Kolb 8153466643 Group POST refinements, test all request methods, make IS_ALPHA use LOWER internally
14 years ago
Peter Griess 9114e58a77 Facility to report detailed parsing errors.
14 years ago
Peter Griess 056bcd3672 Merge pull request #49 from pgriess/upgrade-off-by-one
14 years ago
Peter Griess d4ca280af5 Fix off-by-one in handling upgrade bodies.
14 years ago
Cliff Frey d5f0312eee remove unused LOWER(ch)
14 years ago
Jon Kolb a6934445e8 Allow uppercase chars in IS_ALPHANUM
14 years ago
Peter Griess f684abdcc5 Merge pull request #27 from a2800276/master
14 years ago
Jon Kolb dc314a3cb9 Return error when bad method starts with M or C
14 years ago
Sean Cunningham b89f94414e Support multi-line folding in header values.
14 years ago
Cliff Frey 3258e4a455 Fix build when char is unsigned by default.
14 years ago
Ryan Dahl eee60127c0 Support PATCH method
14 years ago
Peter Griess 3bd18a779e IS_* macros for char classes.
14 years ago
Ryan Dahl 2839784927 HTTP_STRICT ifdefs out behavior introduced in 50b9bec
14 years ago
Peter Griess b1c2cf83fd Expose F_* flags as public API.
14 years ago
Ryan Dahl 8dabce6ec7 It was pointed out we're missing attribution to NGINX
14 years ago
Peter Griess 9639c7c21c Support ?-terminated hostnames per RFC 2396.3.2.
14 years ago
Peter Griess 50b9bec552 Allow octets > 127 in path components.
14 years ago
Ryan Dahl 63daf22f2c Update copyright headers
14 years ago
Sean Cunningham 10270007bc Avoid chunk header parsing overflow.
14 years ago
Sean Cunningham 81ca70aec1 Avoid chunk trailer overflow.
14 years ago
Ryan Dahl 1c3624a963 Detect errors on EOF
14 years ago
Ryan Dahl fcdbc2629f Add hack for tmm1
14 years ago
Tim Becker 9656fd73de moved unecessary lookup
14 years ago
Nathan Rajlich f825b52b7f Added support for "SUBSCRIBE" and "UNSUBSCRIBE" request methods.
14 years ago
Nathan Rajlich d56a0700d0 Add support for "M-SEARCH" and "NOTIFY" request methods.
14 years ago
Nathan Rajlich 84578ae7a8 Set http_major when a request omits the HTTP version
14 years ago
Ryan Dahl 37e9009369 Digits in hostname on CONNECT req allowed
14 years ago
Cliff Frey 90320fde7a Remove acceptable_header array
14 years ago
Ryan Dahl 51de89f8b0 Accept tokens + SP for header fields
14 years ago
Ewen Cheslack-Postava 24be793f64 Provide typedefs instead of using stdint.h on Windows.
14 years ago
Nathan Rajlich a66c61c190 Allow whitespace in the 'Content-Length' header.
14 years ago
Cliff Frey 459507f534 avoid assertion failure in error case
14 years ago
Ben Noordhuis cbb194ea8c Replace C++ style comments with C comments so it compiles with `gcc -ansi -Wall`
14 years ago
Cliff Frey ca2514dd3a Array type cleanups. Also save space
14 years ago
Cliff Frey 423c90d9fe fixes for architectures with signed char default
14 years ago
Ryan Dahl 6f12467a8a Use lookup tables of my own.
15 years ago
Jeff Terrace d0dfc98773 Initialize method member to avoid falsely upgrading connections. Fixed Issue #7
15 years ago
Ryan Dahl a59ba4d866 Support long messages
15 years ago
Ryan Dahl 120f0f6e09 Allow spaces in header fields
15 years ago
Ryan Dahl 5f27ea8179 Fix long line
15 years ago