diff options
Diffstat (limited to 'ext/http-parser/http_parser.h')
| -rw-r--r-- | ext/http-parser/http_parser.h | 9 | 
1 files changed, 7 insertions, 2 deletions
diff --git a/ext/http-parser/http_parser.h b/ext/http-parser/http_parser.h index e33c0620..105ae510 100644 --- a/ext/http-parser/http_parser.h +++ b/ext/http-parser/http_parser.h @@ -26,8 +26,8 @@ extern "C" {  /* Also update SONAME in the Makefile whenever you change these. */  #define HTTP_PARSER_VERSION_MAJOR 2 -#define HTTP_PARSER_VERSION_MINOR 6 -#define HTTP_PARSER_VERSION_PATCH 1 +#define HTTP_PARSER_VERSION_MINOR 7 +#define HTTP_PARSER_VERSION_PATCH 0  #include <sys/types.h>  #if defined(_WIN32) && !defined(__MINGW32__) && \ @@ -77,6 +77,11 @@ typedef struct http_parser_settings http_parser_settings;   * HEAD request which may contain 'Content-Length' or 'Transfer-Encoding:   * chunked' headers that indicate the presence of a body.   * + * Returning `2` from on_headers_complete will tell parser that it should not + * expect neither a body nor any futher responses on this connection. This is + * useful for handling responses to a CONNECT request which may not contain + * `Upgrade` or `Connection: upgrade` headers. + *   * http_data_cb does not return data chunks. It will be called arbitrarily   * many times for each string. E.G. you might get 10 callbacks for "on_url"   * each providing just a few characters more data.  | 
