22#ifndef AVFORMAT_HTTP_H
23#define AVFORMAT_HTTP_H
34#define HTTP_HEADERS_SIZE 4096
70 char *
key = next, *
val, *end;
72 if (!(
val = strstr(
key,
"='")) || !(end = strstr(
val,
"';")))
163 switch (status_code) {
171 if (status_code >= 400 && status_code <= 499)
173 else if (status_code >= 500)
176 return default_averror;
static double val(void *priv, double ch)
static int FUNC metadata(CodedBitstreamContext *ctx, RWContext *rw, APVRawMetadata *current)
int av_dict_set(AVDictionary **pm, const char *key, const char *value, int flags)
Set the given entry in *pm, overwriting an existing entry.
#define AVERROR_HTTP_FORBIDDEN
#define AVERROR_HTTP_BAD_REQUEST
#define AVERROR_HTTP_SERVER_ERROR
#define AVERROR_HTTP_OTHER_4XX
#define AVERROR_HTTP_TOO_MANY_REQUESTS
#define AVERROR_HTTP_UNAUTHORIZED
#define AVERROR_HTTP_NOT_FOUND
#define AV_LOG_VERBOSE
Detailed information.
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.
const char * ff_http_cookie_domain(const AVDictionary *cookie_params)
int ff_http_host_is_ip_literal(const char *host)
int ff_http_do_new_request2(URLContext *h, const char *uri, AVDictionary **options)
Send a new HTTP request, reusing the old connection.
static int ff_http_averror(int status_code, int default_averror)
int64_t ff_http_cookie_expiry(const AVDictionary *attributes)
int ff_http_parse_set_cookie(const char *set_cookie, AVDictionary **cookie, AVDictionary **attributes)
Parse a Set-Cookie style line.
void ff_http_init_auth_state(URLContext *dest, const URLContext *src)
Initialize the authentication state based on another HTTP URLContext.
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".
const char * ff_http_get_new_location(URLContext *h)
int ff_http_parse_status_line(void *logctx, const char *line, HTTPStatusLine *st)
Parse the status line of an HTTP response.
int ff_http_do_new_request(URLContext *h, const char *uri)
Send a new HTTP request, reusing the old connection.
int ff_http_bind_cookies_to_host(char **cookies, const char *host)
Restrict the cookies without a Domain to host.
Parsed form of a response status line.
int code
response status code
const char * reason
reason phrase, points into the parsed line
int willclose
the version implies the connection will close
char version[4]
protocol version, e.g.
static const char *const cookies[]
unbuffered private I/O API