annotate http.h @ 6123:9f368d591c13 libavformat

matroskadec: store the ID of the currently parsed ebml element This allows to interrupt parsing after reading an ID, and then properly recover parsing.
author aurel
date Fri, 11 Jun 2010 16:34:01 +0000
parents 117b1826ce8e
children 6fa300e438f3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6104
a5eaf91edd4a Add the capability to write custom HTTP headers
mstorsjo
parents:
diff changeset
1 /*
a5eaf91edd4a Add the capability to write custom HTTP headers
mstorsjo
parents:
diff changeset
2 * HTTP definitions
a5eaf91edd4a Add the capability to write custom HTTP headers
mstorsjo
parents:
diff changeset
3 * Copyright (c) 2010 Josh Allmann
a5eaf91edd4a Add the capability to write custom HTTP headers
mstorsjo
parents:
diff changeset
4 *
a5eaf91edd4a Add the capability to write custom HTTP headers
mstorsjo
parents:
diff changeset
5 * This file is part of FFmpeg.
a5eaf91edd4a Add the capability to write custom HTTP headers
mstorsjo
parents:
diff changeset
6 *
a5eaf91edd4a Add the capability to write custom HTTP headers
mstorsjo
parents:
diff changeset
7 * FFmpeg is free software; you can redistribute it and/or
a5eaf91edd4a Add the capability to write custom HTTP headers
mstorsjo
parents:
diff changeset
8 * modify it under the terms of the GNU Lesser General Public
a5eaf91edd4a Add the capability to write custom HTTP headers
mstorsjo
parents:
diff changeset
9 * License as published by the Free Software Foundation; either
a5eaf91edd4a Add the capability to write custom HTTP headers
mstorsjo
parents:
diff changeset
10 * version 2.1 of the License, or (at your option) any later version.
a5eaf91edd4a Add the capability to write custom HTTP headers
mstorsjo
parents:
diff changeset
11 *
a5eaf91edd4a Add the capability to write custom HTTP headers
mstorsjo
parents:
diff changeset
12 * FFmpeg is distributed in the hope that it will be useful,
a5eaf91edd4a Add the capability to write custom HTTP headers
mstorsjo
parents:
diff changeset
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
a5eaf91edd4a Add the capability to write custom HTTP headers
mstorsjo
parents:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
a5eaf91edd4a Add the capability to write custom HTTP headers
mstorsjo
parents:
diff changeset
15 * Lesser General Public License for more details.
a5eaf91edd4a Add the capability to write custom HTTP headers
mstorsjo
parents:
diff changeset
16 *
a5eaf91edd4a Add the capability to write custom HTTP headers
mstorsjo
parents:
diff changeset
17 * You should have received a copy of the GNU Lesser General Public
a5eaf91edd4a Add the capability to write custom HTTP headers
mstorsjo
parents:
diff changeset
18 * License along with FFmpeg; if not, write to the Free Software
a5eaf91edd4a Add the capability to write custom HTTP headers
mstorsjo
parents:
diff changeset
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
a5eaf91edd4a Add the capability to write custom HTTP headers
mstorsjo
parents:
diff changeset
20 */
a5eaf91edd4a Add the capability to write custom HTTP headers
mstorsjo
parents:
diff changeset
21 #ifndef AVFORMAT_HTTP_H
a5eaf91edd4a Add the capability to write custom HTTP headers
mstorsjo
parents:
diff changeset
22 #define AVFORMAT_HTTP_H
a5eaf91edd4a Add the capability to write custom HTTP headers
mstorsjo
parents:
diff changeset
23
a5eaf91edd4a Add the capability to write custom HTTP headers
mstorsjo
parents:
diff changeset
24 /**
a5eaf91edd4a Add the capability to write custom HTTP headers
mstorsjo
parents:
diff changeset
25 * Sets custom HTTP headers.
a5eaf91edd4a Add the capability to write custom HTTP headers
mstorsjo
parents:
diff changeset
26 * A trailing CRLF ("\r\n") is required for custom headers.
a5eaf91edd4a Add the capability to write custom HTTP headers
mstorsjo
parents:
diff changeset
27 * Passing in an empty header string ("\0") will reset to defaults.
a5eaf91edd4a Add the capability to write custom HTTP headers
mstorsjo
parents:
diff changeset
28 *
a5eaf91edd4a Add the capability to write custom HTTP headers
mstorsjo
parents:
diff changeset
29 * The following headers can be overriden by custom values,
a5eaf91edd4a Add the capability to write custom HTTP headers
mstorsjo
parents:
diff changeset
30 * otherwise they will be set to their defaults.
a5eaf91edd4a Add the capability to write custom HTTP headers
mstorsjo
parents:
diff changeset
31 * -User-Agent
a5eaf91edd4a Add the capability to write custom HTTP headers
mstorsjo
parents:
diff changeset
32 * -Accept
a5eaf91edd4a Add the capability to write custom HTTP headers
mstorsjo
parents:
diff changeset
33 * -Range
a5eaf91edd4a Add the capability to write custom HTTP headers
mstorsjo
parents:
diff changeset
34 * -Host
a5eaf91edd4a Add the capability to write custom HTTP headers
mstorsjo
parents:
diff changeset
35 * -Connection
a5eaf91edd4a Add the capability to write custom HTTP headers
mstorsjo
parents:
diff changeset
36 *
a5eaf91edd4a Add the capability to write custom HTTP headers
mstorsjo
parents:
diff changeset
37 * @param h URL context for this HTTP connection
a5eaf91edd4a Add the capability to write custom HTTP headers
mstorsjo
parents:
diff changeset
38 * @param headers the custom headers to set
a5eaf91edd4a Add the capability to write custom HTTP headers
mstorsjo
parents:
diff changeset
39 */
a5eaf91edd4a Add the capability to write custom HTTP headers
mstorsjo
parents:
diff changeset
40 void ff_http_set_headers(URLContext *h, const char *headers);
a5eaf91edd4a Add the capability to write custom HTTP headers
mstorsjo
parents:
diff changeset
41
6108
117b1826ce8e Add support for disabling chunked transfer encoding for the http protocol
mstorsjo
parents: 6104
diff changeset
42 /**
117b1826ce8e Add support for disabling chunked transfer encoding for the http protocol
mstorsjo
parents: 6104
diff changeset
43 * Enables or disables chunked transfer encoding. (default is enabled)
117b1826ce8e Add support for disabling chunked transfer encoding for the http protocol
mstorsjo
parents: 6104
diff changeset
44 *
117b1826ce8e Add support for disabling chunked transfer encoding for the http protocol
mstorsjo
parents: 6104
diff changeset
45 * @param h URL context for this HTTP connection
117b1826ce8e Add support for disabling chunked transfer encoding for the http protocol
mstorsjo
parents: 6104
diff changeset
46 * @param is_chunked 0 to disable chunking, nonzero otherwise.
117b1826ce8e Add support for disabling chunked transfer encoding for the http protocol
mstorsjo
parents: 6104
diff changeset
47 */
117b1826ce8e Add support for disabling chunked transfer encoding for the http protocol
mstorsjo
parents: 6104
diff changeset
48 void ff_http_set_chunked_transfer_encoding(URLContext *h, int is_chunked);
117b1826ce8e Add support for disabling chunked transfer encoding for the http protocol
mstorsjo
parents: 6104
diff changeset
49
6104
a5eaf91edd4a Add the capability to write custom HTTP headers
mstorsjo
parents:
diff changeset
50 #endif /* AVFORMAT_HTTP_H */