Go to the documentation of this file.
22 #ifndef AVFORMAT_HTTP_H
23 #define AVFORMAT_HTTP_H
28 #define HTTP_HEADERS_SIZE 4096
68 switch (status_code) {
76 if (status_code >= 400 && status_code <= 499)
78 else if (status_code >= 500)
81 return default_averror;
int ff_http_do_new_request2(URLContext *h, const char *uri, AVDictionary **options)
Send a new HTTP request, reusing the old connection.
#define AVERROR_HTTP_OTHER_4XX
const char * ff_http_get_new_location(URLContext *h)
#define AVERROR_HTTP_SERVER_ERROR
#define AVERROR_HTTP_UNAUTHORIZED
#define AVERROR_HTTP_NOT_FOUND
int ff_http_do_new_request(URLContext *h, const char *uri)
Send a new HTTP request, reusing the old connection.
#define AVERROR_HTTP_TOO_MANY_REQUESTS
#define AVERROR_HTTP_BAD_REQUEST
void ff_http_init_auth_state(URLContext *dest, const URLContext *src)
Initialize the authentication state based on another HTTP URLContext.
#define AVERROR_HTTP_FORBIDDEN
static int ff_http_averror(int status_code, int default_averror)