http2: initial implementation of the push callback

This commit is contained in:
Daniel Stenberg
2015-06-01 11:45:52 +02:00
parent 19d5bcd66a
commit 352fbceef3
6 changed files with 92 additions and 10 deletions

View File

@@ -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);