|
FFmpeg
|
#include <stdint.h>#include <stdlib.h>#include <string.h>#include <time.h>#include "libavutil/avstring.h"#include "libavutil/bprint.h"#include "libavutil/common.h"#include "libavutil/mem.h"#include "libavutil/parseutils.h"#include "http.h"Go to the source code of this file.
Macros | |
| #define | WHITESPACES " \n\t\r" |
Functions | |
| static int | is_date_delimiter (uint8_t c) |
| static int | parse_digits (const char *str, int min, int max, int *val) |
| static int | parse_time (const char *str, struct tm *tm) |
| static int | parse_month (const char *str) |
| 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". | |
| static char * | trim (char *str) |
| static int | has_control_char (const char *str) |
| static int | is_delta_seconds (const char *str) |
| 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. | |
| #define WHITESPACES " \n\t\r" |
Definition at line 32 of file httpcookie.c.
|
static |
Definition at line 34 of file httpcookie.c.
Referenced by ff_http_parse_date().
|
static |
Definition at line 41 of file httpcookie.c.
Referenced by ff_http_parse_date(), and parse_time().
|
static |
Definition at line 50 of file httpcookie.c.
Referenced by ff_http_parse_date().
|
static |
Definition at line 59 of file httpcookie.c.
Referenced by ff_http_parse_date().
| 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().
|
static |
Definition at line 107 of file httpcookie.c.
Referenced by ff_celt_bitalloc(), ff_http_parse_set_cookie(), filter_frame(), filter_frame(), and insert_trim().
|
static |
Definition at line 118 of file httpcookie.c.
Referenced by ff_http_parse_set_cookie().
|
static |
Definition at line 126 of file httpcookie.c.
Referenced by ff_http_parse_set_cookie().
| 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().