diff options
author | Daniel Stenberg <daniel@haxx.se> | 2010-01-21 13:58:30 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2010-01-21 13:58:30 +0000 |
commit | bc4582b68a673d3b0f5a2e7d971605de2c8b3730 (patch) | |
tree | 09897ee9c051870d0be56108d41f6595d41e932d /lib/http.h | |
parent | e09718d457f5ba512920c9ed0a0db5c8ca6dcc53 (diff) | |
download | curl-bc4582b68a673d3b0f5a2e7d971605de2c8b3730.tar.gz |
Chris Conroy brought support for RTSP transfers, and with it comes 8(!) new
libcurl options for controlling what to get and how to receive posssibly
interleaved RTP data. Initial commit.
Diffstat (limited to 'lib/http.h')
-rw-r--r-- | lib/http.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/http.h b/lib/http.h index 155027d99..b2cbdae35 100644 --- a/lib/http.h +++ b/lib/http.h @@ -35,8 +35,40 @@ bool Curl_compareheader(const char *headerline, /* line to check */ const char *header, /* header keyword _with_ colon */ const char *content); /* content string to find */ +char *Curl_checkheaders(struct SessionHandle *data, const char *thisheader); + char *Curl_copy_header_value(const char *h); + +/* ------------------------------------------------------------------------- */ +/* + * The add_buffer series of functions are used to build one large memory chunk + * from repeated function invokes. Used so that the entire HTTP request can + * be sent in one go. + */ +struct Curl_send_buffer { + char *buffer; + size_t size_max; + size_t size_used; +}; +typedef struct Curl_send_buffer Curl_send_buffer; + +Curl_send_buffer *Curl_add_buffer_init(void); +CURLcode Curl_add_bufferf(Curl_send_buffer *in, const char *fmt, ...); +CURLcode Curl_add_buffer(Curl_send_buffer *in, const void *inptr, size_t size); +CURLcode Curl_add_buffer_send(Curl_send_buffer *in, + struct connectdata *conn, + long *bytes_written, + size_t included_body_bytes, + int socketindex); + + +CURLcode Curl_add_timecondition(struct SessionHandle *data, + Curl_send_buffer *buf); +CURLcode Curl_add_custom_headers(struct connectdata *conn, + Curl_send_buffer *req_buffer); + + /* ftp can use this as well */ CURLcode Curl_proxyCONNECT(struct connectdata *conn, int tunnelsocket, |