dchem
2016-10-31 ba7cb794a1bbbbdb50e4b34c21760c8165390d83
refs
author dchem <jaey226@gmail.com>
Monday, October 31, 2016 23:50 +0000
committer dchem <jaey226@gmail.com>
Monday, October 31, 2016 23:50 +0000
commitba7cb794a1bbbbdb50e4b34c21760c8165390d83
tree 62771b41babff4952d17e8850f5bae0458e2e248 tree | zip | gz
parent 0c4e42eda361fcd009e685a0c6cb1a90e47a09e1 view | diff
Add pack_http_custom_resp

Previously there was no way to pass custom headers and their
values.

This patch adds a function pack_http_custom_resp, which is
more generalized to allow custom headers.

Behavior of pack_http_resp remains unchanged.
3 files modified
108 ■■■■■ changed files
src/http_resp_packer.c 26 ●●●● diff | view | raw | blame | history
src/http_resp_packer.h 20 ●●●●● diff | view | raw | blame | history
test/test.c 62 ●●●●● diff | view | raw | blame | history