| VLC
    3.0.18
    | 
HTTP connection management. More...

| Modules | |
| Connections | |
| HTTP connections. | |
| Streams | |
| Files | |
| file | connmgr.h | 
| Functions | |
| struct vlc_http_msg * | vlc_http_mgr_request (struct vlc_http_mgr *mgr, bool https, const char *host, unsigned port, const struct vlc_http_msg *req) | 
| Sends an HTTP request.  More... | |
| struct vlc_http_cookie_jar_t * | vlc_http_mgr_get_jar (struct vlc_http_mgr *) | 
| struct vlc_http_mgr * | vlc_http_mgr_create (vlc_object_t *obj, struct vlc_http_cookie_jar_t *jar) | 
| Creates an HTTP connection manager.  More... | |
| void | vlc_http_mgr_destroy (struct vlc_http_mgr *mgr) | 
| Destroys an HTTP connection manager.  More... | |
HTTP connection management.
| struct vlc_http_mgr* vlc_http_mgr_create | ( | vlc_object_t * | obj, | 
| struct vlc_http_cookie_jar_t * | jar | ||
| ) | 
Creates an HTTP connection manager.
Allocates an HTTP client connections manager.
| obj | parent VLC object | 
| jar | HTTP cookies jar (NULL to disable cookies) | 
References vlc_http_mgr::conn, vlc_http_mgr::creds, vlc_http_mgr::jar, vlc_http_mgr::obj, and unlikely.
Referenced by Open().
| void vlc_http_mgr_destroy | ( | struct vlc_http_mgr * | mgr | ) | 
Destroys an HTTP connection manager.
Deallocates an HTTP client connections manager created by vlc_http_msg_destroy(). Any remaining connection is closed and destroyed.
References vlc_http_mgr::conn, vlc_http_mgr::creds, vlc_http_mgr_release(), and vlc_tls_Delete().
| struct vlc_http_cookie_jar_t* vlc_http_mgr_get_jar | ( | struct vlc_http_mgr * | ) | 
References vlc_http_mgr::jar.
Referenced by vlc_http_res_open(), and vlc_http_res_req().
| struct vlc_http_msg* vlc_http_mgr_request | ( | struct vlc_http_mgr * | mgr, | 
| bool | https, | ||
| const char * | host, | ||
| unsigned | port, | ||
| const struct vlc_http_msg * | req | ||
| ) | 
Sends an HTTP request.
Sends an HTTP request, by either reusing an existing HTTP connection or establishing a new one. If succesful, the initial HTTP response header is returned.
| mgr | HTTP connection manager | 
| https | whether to use HTTPS (true) or unencrypted HTTP (false) | 
| host | name of authoritative HTTP server to send the request to | 
| port | TCP server port number, or 0 for the default port number | 
| req | HTTP request header to send | 
References vlc_http_request(), and vlc_https_request().
Referenced by vlc_http_res_open().
 1.8.16
 1.8.16