mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:21:41 +03:00
http: move headers collecting to writer
- add a client writer that does "push" response headers written to the client if the headers api is enabled - remove special handling in sendf.c - needs to be installed very early on connection setup to catch CONNECT response headers Closes #12880
This commit is contained in:
parent
5b41fac587
commit
2abfa3833b
6 changed files with 90 additions and 19 deletions
|
|
@ -151,6 +151,9 @@ CURLcode Curl_cwriter_add(struct Curl_easy *data,
|
|||
void Curl_cwriter_remove_by_name(struct Curl_easy *data,
|
||||
const char *name);
|
||||
|
||||
struct Curl_cwriter *Curl_cwriter_get_by_name(struct Curl_easy *data,
|
||||
const char *name);
|
||||
|
||||
/**
|
||||
* Convenience method for calling `writer->do_write()` that
|
||||
* checks for NULL writer.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue