|
FFmpeg
|
#include "url.h"Go to the source code of this file.
Macros | |
| #define | HTTP_HEADERS_SIZE 4096 |
Functions | |
| void | ff_http_init_auth_state (URLContext *dest, const URLContext *src) |
| Initialize the authentication state based on another HTTP URLContext. More... | |
| int | ff_http_do_new_request (URLContext *h, const char *uri) |
| Send a new HTTP request, reusing the old connection. More... | |
| int | ff_http_do_new_request2 (URLContext *h, const char *uri, AVDictionary **options) |
| Send a new HTTP request, reusing the old connection. More... | |
| int | ff_http_averror (int status_code, int default_averror) |
| 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 452 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 456 of file http.c.
Referenced by ff_http_do_new_request(), and open_url_keepalive().
Definition at line 516 of file http.c.
Referenced by check_http_code(), ff_rtsp_averror(), http_open_cnx(), and process_line().
1.8.17