mirror of
https://github.com/curl/curl.git
synced 2026-07-24 13:57:16 +03:00
http2: fixed the header accessor functions for the push callback
This commit is contained in:
parent
feea9263e9
commit
f65ab8864e
5 changed files with 82 additions and 43 deletions
|
|
@ -294,18 +294,13 @@ typedef int (*curl_multi_timer_callback)(CURLM *multi, /* multi handle */
|
|||
#define CURL_PUSH_OK 0
|
||||
#define CURL_PUSH_DENY 1
|
||||
|
||||
struct curl_headerpair {
|
||||
unsigned char *name; /* zero terminated name */
|
||||
size_t namelen; /* length of 'name' */
|
||||
unsigned char *value; /* zero terminated name */
|
||||
size_t valuelen; /* length of 'value' */
|
||||
};
|
||||
|
||||
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);
|
||||
|
||||
CURL_EXTERN char *curl_pushheader_bynum(struct curl_pushheaders *h,
|
||||
size_t num);
|
||||
|
||||
CURL_EXTERN char *curl_pushheader_byname(struct curl_pushheaders *h,
|
||||
char *name);
|
||||
|
||||
typedef int (*curl_push_callback)(CURL *parent,
|
||||
CURL *easy,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue