http2.h
Go to the documentation of this file.
00001 #ifndef HEADER_CURL_HTTP2_H
00002 #define HEADER_CURL_HTTP2_H
00003 /***************************************************************************
00004  *                                  _   _ ____  _
00005  *  Project                     ___| | | |  _ \| |
00006  *                             / __| | | | |_) | |
00007  *                            | (__| |_| |  _ <| |___
00008  *                             \___|\___/|_| \_\_____|
00009  *
00010  * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
00011  *
00012  * This software is licensed as described in the file COPYING, which
00013  * you should have received as part of this distribution. The terms
00014  * are also available at https://curl.haxx.se/docs/copyright.html.
00015  *
00016  * You may opt to use, copy, modify, merge, publish, distribute and/or sell
00017  * copies of the Software, and permit persons to whom the Software is
00018  * furnished to do so, under the terms of the COPYING file.
00019  *
00020  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
00021  * KIND, either express or implied.
00022  *
00023  ***************************************************************************/
00024 
00025 #include "curl_setup.h"
00026 
00027 #ifdef USE_NGHTTP2
00028 #include "http.h"
00029 
00030 /* value for MAX_CONCURRENT_STREAMS we use until we get an updated setting
00031    from the peer */
00032 #define DEFAULT_MAX_CONCURRENT_STREAMS 13
00033 
00034 /*
00035  * Store nghttp2 version info in this buffer, Prefix with a space.  Return
00036  * total length written.
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 /* called from Curl_http_setup_conn */
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 /* USE_NGHTTP2 */
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 /* HEADER_CURL_HTTP2_H */
00079 


rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:04