Go to the documentation of this file.00001 #ifndef HEADER_CURL_HTTP2_H
00002 #define HEADER_CURL_HTTP2_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #include "curl_setup.h"
00026
00027 #ifdef USE_NGHTTP2
00028 #include "http.h"
00029
00030
00031
00032 #define DEFAULT_MAX_CONCURRENT_STREAMS 13
00033
00034
00035
00036
00037
00038 int Curl_http2_ver(char *p, size_t len);
00039
00040 const char *Curl_http2_strerror(uint32_t err);
00041
00042 CURLcode Curl_http2_init(struct connectdata *conn);
00043 void Curl_http2_init_state(struct UrlState *state);
00044 void Curl_http2_init_userset(struct UserDefined *set);
00045 CURLcode Curl_http2_send_request(struct connectdata *conn);
00046 CURLcode Curl_http2_request_upgrade(Curl_send_buffer *req,
00047 struct connectdata *conn);
00048 CURLcode Curl_http2_setup(struct connectdata *conn);
00049 CURLcode Curl_http2_switched(struct connectdata *conn,
00050 const char *data, size_t nread);
00051
00052 void Curl_http2_setup_conn(struct connectdata *conn);
00053 void Curl_http2_setup_req(struct Curl_easy *data);
00054 void Curl_http2_done(struct connectdata *conn, bool premature);
00055 CURLcode Curl_http2_done_sending(struct connectdata *conn);
00056 void Curl_http2_add_child(struct Curl_easy *parent, struct Curl_easy *child,
00057 bool exclusive);
00058 void Curl_http2_remove_child(struct Curl_easy *parent,
00059 struct Curl_easy *child);
00060 void Curl_http2_cleanup_dependencies(struct Curl_easy *data);
00061 #else
00062 #define Curl_http2_init(x) CURLE_UNSUPPORTED_PROTOCOL
00063 #define Curl_http2_send_request(x) CURLE_UNSUPPORTED_PROTOCOL
00064 #define Curl_http2_request_upgrade(x,y) CURLE_UNSUPPORTED_PROTOCOL
00065 #define Curl_http2_setup(x) CURLE_UNSUPPORTED_PROTOCOL
00066 #define Curl_http2_switched(x,y,z) CURLE_UNSUPPORTED_PROTOCOL
00067 #define Curl_http2_setup_conn(x)
00068 #define Curl_http2_setup_req(x)
00069 #define Curl_http2_init_state(x)
00070 #define Curl_http2_init_userset(x)
00071 #define Curl_http2_done(x,y)
00072 #define Curl_http2_done_sending(x)
00073 #define Curl_http2_add_child(x, y, z)
00074 #define Curl_http2_remove_child(x, y)
00075 #define Curl_http2_cleanup_dependencies(x)
00076 #endif
00077
00078 #endif
00079