diff http.h @ 6108:117b1826ce8e libavformat

Add support for disabling chunked transfer encoding for the http protocol Patch by Josh Allmann, josh dot allmann at gmail
author mstorsjo
date Tue, 08 Jun 2010 11:48:03 +0000
parents a5eaf91edd4a
children 6fa300e438f3
line wrap: on
line diff
--- a/http.h	Tue Jun 08 11:18:22 2010 +0000
+++ b/http.h	Tue Jun 08 11:48:03 2010 +0000
@@ -39,4 +39,12 @@
  */
 void ff_http_set_headers(URLContext *h, const char *headers);
 
+/**
+ * Enables or disables chunked transfer encoding. (default is enabled)
+ *
+ * @param h URL context for this HTTP connection
+ * @param is_chunked 0 to disable chunking, nonzero otherwise.
+ */
+void ff_http_set_chunked_transfer_encoding(URLContext *h, int is_chunked);
+
 #endif /* AVFORMAT_HTTP_H */