introduce lws_hdr_copy_fragment
authorAndy Green <andy.green@linaro.org>
Tue, 15 Dec 2015 14:59:23 +0000 (22:59 +0800)
committerAndy Green <andy.green@linaro.org>
Tue, 15 Dec 2015 14:59:23 +0000 (22:59 +0800)
commit566eb4381c440fc12c38e87054e2619c25c1b568
tree4c16744050a0d17ab77ea102ea632ca3095432e3
parent6b5de70f4fb1eadac6730f3b4ecfe156bd38567a
introduce lws_hdr_copy_fragment

This adds a public API variant of the header copy api that lets you
choose which fragment you want copied.

Normally you want the existing one that aggregates the fragments.

But it can be useful to get each part in turn (that corresponds to
the content provided by each duplicated header normally).

Signed-off-by: Andy Green <andy.green@linaro.org>
lib/libwebsockets.h
lib/parsers.c