Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Sep 1, 2012
  1. BogDan Vatra Ben Noordhuis

    Add "int http_body_is_final(const http_parser *parser)" method.

    bog-dan-ro authored bnoordhuis committed
    It's useful to check if the current chunk is the last one.
Commits on Aug 29, 2012
  1. Ben Noordhuis
Commits on Jul 26, 2012
  1. Ben Noordhuis
Commits on Jul 25, 2012
  1. Peter Griess

    Merge pull request #104 from simonz05/patch-1

    pgriess authored
    Correct misspelling in http_parser.h
  2. Peter Griess

    Merge pull request #118 from bpaquet/master

    pgriess authored
    #116 : refactor to allow url with basic auth
Commits on Jul 15, 2012
  1. James McLaughlin Ben Noordhuis

    Make size_t and ssize_t Windows typedefs more appropriate

    udp authored bnoordhuis committed
Commits on Jul 8, 2012
  1. User info implementation

    Bertrand Paquet authored
Commits on Mar 19, 2012
  1. Correct misspelling in http_parser.h

    Simon authored
Commits on Mar 12, 2012
  1. Ben Noordhuis
  2. Nathan Rajlich Ben Noordhuis

    add support for "SEARCH" request methods

    TooTallNate authored bnoordhuis committed
Commits on Feb 27, 2012
  1. Ben Noordhuis

    Replace HTTP methods enum with X-macro map.

    bnoordhuis authored
    Makes it easier for integrators to generate bindings for the HTTP methods that
    we support. Example:
        // stringify method names
        const char *methods[] = {
        #define XX(num, name) #name,
        #undef XX
Commits on Feb 26, 2012
  1. Ben Noordhuis
Commits on Feb 20, 2012
  1. Ben Noordhuis
Commits on Feb 15, 2012
  1. Ben Noordhuis

    removed obsolete CB_path, CB_query_string and CB_fragment

    Randy Rizun authored bnoordhuis committed
Commits on Jan 27, 2012
  1. Ben Noordhuis
Commits on Jan 9, 2012
  1. Peter Griess

    Implement http_parser_pause().

    pgriess authored
    - Add http_parser_pause() API. A callback may invoke this at any time.
      This will cause http_parser_parse() to return indicating that it
      parsed less than the number of requested bytes and set an error to
      HBE_PAUSED. A paused parser with fail with HBE_PAUSED until it is
      un-paused with http_parser_pause().
    - Stop using 'state', 'header_state', 'index', and 'nread' shadow
      variables and then updating their http_parser fields when we're done.
      Instead, update the live values as we go. This will make it possible
      to return from anywhere in the parser (say, due to EPAUSED) and have
      valid/expected state.
    - Update state before making callbacks so that if the want to pause,
      we'll know the correct state already.
    - Make sure that every callback has a state that uniquely identifies the
      next step so that we can resume in the right place if we were suppoed
      to be paused.
    - Clean and re-factor up CALLBACK() macros.
    - Use CALLBACK() macros for (almost) all callbacks; on_headers_complete
      is still a special case. This includes on_body which we used to invoke
      manually with a long run of bytes. We now use a 'body' mark and hit
      its callback just like every other data callback.
    - Clean up (most) gotos and replace with real states.
    - Add some unit tests.
    Fixes #70
Commits on Jan 7, 2012
  1. Peter Griess

    Add http_parser_parse_url().

    pgriess authored
    - Add an http_parser_parse_url() method to parse a URL into its
      constituent components. This uses the same underlying parser
      as http_parser_parse() and doesn't do any data copies.
    - Re-add the URL components in various test.c structures; validate
      them when parsing.
Commits on Dec 13, 2011
  1. ry

    Fix compilation on MSVC 2008 which doesn't bundle stdint.h

    ry authored
    Thanks to Steve Ridout for the patch. Fixes #69.
Commits on Aug 29, 2011
  1. Ben Noordhuis

    Single-bit bitfield 'upgrade' should be unsigned.

    bnoordhuis authored
    Fixes sparse error report: dubious one-bit signed bitfield.
Commits on Aug 6, 2011
  1. ry

    Support MSVS

    ry authored
Commits on Jul 24, 2011
  1. Fouad Mardini

    rename parser->errno to parser->http_errno; conflicts with errno.h wh…

    fmardini authored
    …ere errno is defined as a macro
Commits on Jul 20, 2011
  1. Peter Griess

    API CHANGE: Remove path, query, fragment CBs.

    pgriess authored
    - Get rid of support for these callbacks in http_parser_settings.
    - Retain state transitions between different URL portions in
      http_parser_execute() so that we're making the same correctness
      guarantees as before.
    - These are being removed because making multiple callbacks for the same
      byte makes it more difficult to pause the parser.
Commits on Jul 9, 2011
  1. Peter Griess
Commits on Jun 19, 2011
  1. Peter Griess

    Facility to report detailed parsing errors.

    pgriess authored
    - Add http_errno enum w/ values for many parsing error conditions. Stash
      this in http_parser.state if the 0x80 bit is set.
    - Report line numbers on error generation if the (new) HTTP_PARSER_DEBUG
      cpp symbol is set. Increases http_parser struct size by 8 bytes in
      this case.
    - Add http_errno_*() methods to help turning errno values into
      human-readable messages.
Commits on Jun 3, 2011
  1. ry
Commits on May 24, 2011
  1. ry
  2. Peter Griess ry

    Expose F_* flags as public API.

    pgriess authored ry committed
    Fixes #42.
Commits on May 12, 2011
  1. ry

    bump to v1.0

    ry authored
Commits on Mar 22, 2011
  1. ry

    Update copyright headers

    ry authored
Commits on Nov 22, 2010
  1. Nathan Rajlich ry
  2. Nathan Rajlich ry

    Add support for "M-SEARCH" and "NOTIFY" request methods.

    TooTallNate authored ry committed
    Allow a request path of "*" (for SSDP requests).
Commits on Nov 11, 2010
  1. Aman Gupta ry

    Fix build issues using mingw32 on windows

    tmm1 authored ry committed
Commits on Nov 5, 2010
  1. Ewen Cheslack-Postava ry

    Provide typedefs instead of using stdint.h on Windows.

    ewencp authored ry committed
Commits on Aug 18, 2010
  1. ry

    save 8 bytes in http_parser structure

    Cliff Frey authored ry committed
    nread can never be larger than HTTP_MAX_HEADER_SIZE
Commits on Jul 26, 2010
  1. ry

    Support long messages

    ry authored
Something went wrong with that request. Please try again.