Skip to content

Commit

Permalink
11.支持cookie/setcookie
Browse files Browse the repository at this point in the history
12.支持添加自定义头部信息
  • Loading branch information
lzpong committed Jul 18, 2018
1 parent 8d0d904 commit 7d3b77a
Show file tree
Hide file tree
Showing 5 changed files with 175 additions and 107 deletions.
6 changes: 6 additions & 0 deletions Main.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ char on_request(void* data, uv_stream_t* client, tw_peerAddr* pa, tw_reqHeads* h
// tw_send_200_OK(client, "text/html", tmp, -1, 0);
//#endif // _MSC_VER
//
printf(" Query: %s\n",heads->query);
printf(" Path: %s\n",heads->path);
printf(" Host: %s\n",heads->host);
printf(" Cookie: %s\n", heads->cookie);
printf(" Range: %lld-%lld\n",heads->Range_frm,heads->Range_to);
printf(" data(%lld): %s\n", heads->len,heads->data);
return 0;
}

Expand Down
Loading

0 comments on commit 7d3b77a

Please sign in to comment.