Permalink
Browse files

bench: add chunked bytes

Reviewed-By: Fedor Indutny <fedor@indutny.com>
  • Loading branch information...
1 parent 091ebb8 commit 265f9d0edc3b501912bf5df4f4b553d46e526608 @indutny indutny committed Dec 1, 2014
Showing with 3 additions and 2 deletions.
  1. +3 −2 bench.c
View
@@ -25,7 +25,7 @@
#include <sys/time.h>
static const char data[] =
- "GET /joyent/http-parser HTTP/1.1\r\n"
+ "POST /joyent/http-parser HTTP/1.1\r\n"
"Host: github.com\r\n"
"DNT: 1\r\n"
"Accept-Encoding: gzip, deflate, sdch\r\n"
@@ -37,7 +37,8 @@ static const char data[] =
"image/webp,*/*;q=0.8\r\n"
"Referer: https://github.com/joyent/http-parser\r\n"
"Connection: keep-alive\r\n"
- "Cache-Control: max-age=0\r\n\r\n";
+ "Transfer-Encoding: chunked\r\n"
+ "Cache-Control: max-age=0\r\n\r\nb\r\nhello world\r\n0\r\n\r\n";
static const size_t data_len = sizeof(data) - 1;
static int on_info(http_parser* p) {

0 comments on commit 265f9d0

Please sign in to comment.