mirror of
https://github.com/curl/curl.git
synced 2026-07-23 21:17:17 +03:00
http2: initial implementation of the push callback
This commit is contained in:
parent
70191958b5
commit
ea7134ac87
6 changed files with 92 additions and 10 deletions
|
|
@ -302,10 +302,14 @@ struct curl_headerpair {
|
|||
};
|
||||
|
||||
struct curl_pushheaders; /* forward declaration only */
|
||||
struct curl_headerpair *curl_pushheader_bynum(struct curl_pushheaders *h,
|
||||
int num);
|
||||
struct curl_headerpair *curl_pushheader_byname(struct curl_pushheaders *h,
|
||||
char *name);
|
||||
|
||||
typedef int (*curl_push_callback)(CURL *parent,
|
||||
CURL *easy,
|
||||
int num_headers,
|
||||
size_t num_headers,
|
||||
struct curl_pushheaders *headers,
|
||||
void *userp);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue