|
FFmpeg
|
#include <stdint.h>#include <string.h>#include <time.h>#include "libavutil/dict.h"#include "libavutil/error.h"#include "libavutil/log.h"#include "url.h"Go to the source code of this file.
Data Structures | |
| struct | HTTPStatusLine |
| Parsed form of a response status line. More... | |
Macros | |
| #define | HTTP_HEADERS_SIZE 4096 |
Functions | |
| int | ff_http_parse_status_line (void *logctx, const char *line, HTTPStatusLine *st) |
| Parse the status line of an HTTP response. | |
| static void | ff_http_parse_icy_packet (void *logctx, AVDictionary **metadata, char *data) |
| Split an in-band ICY metadata packet into its "Key='Value';" pairs. | |
| void | ff_http_init_auth_state (URLContext *dest, const URLContext *src) |
| Initialize the authentication state based on another HTTP URLContext. | |
| int | ff_http_do_new_request (URLContext *h, const char *uri) |
| Send a new HTTP request, reusing the old connection. | |
| int | ff_http_do_new_request2 (URLContext *h, const char *uri, AVDictionary **options) |
| Send a new HTTP request, reusing the old connection. | |
| const char * | ff_http_get_new_location (URLContext *h) |
| int | ff_http_parse_date (const char *date_str, struct tm *buf) |
| Parse an HTTP date like "Wed, 21 Oct 2015 07:28:00 GMT". | |
| int | ff_http_parse_set_cookie (const char *set_cookie, AVDictionary **cookie, AVDictionary **attributes) |
| Parse a Set-Cookie style line. | |
| int | ff_http_host_is_ip_literal (const char *host) |
| const char * | ff_http_cookie_domain (const AVDictionary *cookie_params) |
| int64_t | ff_http_cookie_expiry (const AVDictionary *attributes) |
| int | ff_http_bind_cookies_to_host (char **cookies, const char *host) |
| Restrict the cookies without a Domain to host. | |
| static int | ff_http_averror (int status_code, int default_averror) |
| int ff_http_parse_status_line | ( | void * | logctx, |
| const char * | line, | ||
| HTTPStatusLine * | st ) |
Parse the status line of an HTTP response.
| logctx | context used for logging, may be NULL |
| line | NUL terminated status line, without its trailing CRLF |
| st | filled in with the parsed status line |
Definition at line 952 of file http.c.
Referenced by process_line(), and test().
|
inlinestatic |
Split an in-band ICY metadata packet into its "Key='Value';" pairs.
| logctx | context used for logging, may be NULL |
| metadata | dictionary the pairs are stored in |
| data | NUL terminated packet, split in place |
Definition at line 64 of file http.h.
Referenced by store_icy(), and update_icy_metadata().
| void ff_http_init_auth_state | ( | URLContext * | dest, |
| const URLContext * | src ) |
Initialize the authentication state based on another HTTP URLContext.
This can be used to pre-initialize the authentication parameters if they are known beforehand, to avoid having to do an initial failing request just to get the parameters.
| dest | URL context whose authentication state gets updated |
| src | URL context whose authentication state gets copied |
| int ff_http_do_new_request | ( | URLContext * | h, |
| const char * | uri ) |
Send a new HTTP request, reusing the old connection.
| h | pointer to the resource |
| uri | uri used to perform the request |
Definition at line 589 of file http.c.
Referenced by dashenc_io_open(), hlsenc_io_open(), and rtmp_http_send_cmd().
| int ff_http_do_new_request2 | ( | URLContext * | h, |
| const char * | uri, | ||
| AVDictionary ** | options ) |
Send a new HTTP request, reusing the old connection.
| h | pointer to the resource |
| uri | uri used to perform the request |
| options | A dictionary filled with HTTP options. On return this parameter will be destroyed and replaced with a dict containing options that were not found. May be NULL. |
Definition at line 593 of file http.c.
Referenced by ff_http_do_new_request(), and open_url_keepalive().
| const char * ff_http_get_new_location | ( | URLContext * | h | ) |
Definition at line 661 of file http.c.
Referenced by exchange_sdp().
| int ff_http_parse_date | ( | const char * | date_str, |
| struct tm * | buf ) |
Parse an HTTP date like "Wed, 21 Oct 2015 07:28:00 GMT".
Definition at line 69 of file httpcookie.c.
Referenced by ff_http_cookie_expiry(), ff_http_parse_set_cookie(), main(), parse_cookie(), parse_expires(), and process_line().
| int ff_http_parse_set_cookie | ( | const char * | set_cookie, |
| AVDictionary ** | cookie, | ||
| AVDictionary ** | attributes ) |
Parse a Set-Cookie style line.
| cookie | the name and value of the cookie are added to it |
| attributes | the attributes of the cookie are added to it |
Definition at line 132 of file httpcookie.c.
Referenced by cookie_list_line(), ff_http_bind_cookies_to_host(), get_cookies(), main(), and parse_cookie().
| int ff_http_host_is_ip_literal | ( | const char * | host | ) |
Definition at line 182 of file httpcookie.c.
Referenced by cookie_list_line(), and host_in_cookie_domain().
| const char * ff_http_cookie_domain | ( | const AVDictionary * | cookie_params | ) |
Definition at line 187 of file httpcookie.c.
Referenced by cookie_list_line(), ff_http_bind_cookies_to_host(), get_cookies(), main(), and parse_cookie().
| int64_t ff_http_cookie_expiry | ( | const AVDictionary * | attributes | ) |
| attributes | attributes parsed by ff_http_parse_set_cookie() |
Definition at line 195 of file httpcookie.c.
Referenced by cookie_list_line(), get_cookies(), and main().
| int ff_http_bind_cookies_to_host | ( | char ** | cookies, |
| const char * | host ) |
Restrict the cookies without a Domain to host.
| cookies | newline separated Set-Cookie style lines, replaced on success |
Definition at line 211 of file httpcookie.c.
Referenced by http_open(), main(), and setup_curl().
|
inlinestatic |
Definition at line 161 of file http.h.
Referenced by check_http_code(), ff_rtsp_averror(), header_callback(), and http_open_cnx().