Go to the documentation of this file.
31 struct vlc_http_outfile;
45 const char *url,
const char *ua,
const char *user,
const char *pwd);
char * vlc_http_authority(const char *host, unsigned port)
Formats an authority.
Definition: message.c:573
#define unlikely(p)
Predicted false condition.
Definition: vlc_common.h:227
int vlc_http_msg_add_creds_basic(struct vlc_http_msg *m, bool proxy, const char *username, const char *password)
Adds Basic credentials.
Definition: message.c:1005
void vlc_http_msg_destroy(struct vlc_http_msg *m)
Destroys an HTTP message.
Definition: message.c:193
int vlc_http_outfile_close(struct vlc_http_outfile *f)
Definition: outfile.c:108
struct vlc_http_msg * vlc_http_msg_iterate(struct vlc_http_msg *m)
Gets next response headers.
Definition: message.c:265
void vlc_UrlClean(vlc_url_t *restrict url)
Definition: url.c:598
static int vlc_ascii_strcasecmp(const char *psz1, const char *psz2)
Compare two ASCII strings ignoring case.
Definition: vlc_strings.h:60
int vlc_http_msg_add_agent(struct vlc_http_msg *m, const char *str)
Sets the agent field.
Definition: message.c:783
int vlc_http_msg_add_header(struct vlc_http_msg *m, const char *name, const char *fmt,...)
Definition: message.c:144
char * psz_host
Definition: vlc_url.h:150
char * psz_protocol
Definition: vlc_url.h:147
int vlc_UrlParse(vlc_url_t *url, const char *str)
Parses an URI or IRI.
Definition: url.c:558
struct vlc_http_msg * vlc_http_req_create(const char *method, const char *scheme, const char *authority, const char *path)
Creates an HTTP request.
Definition: message.c:213
short status
Definition: message.c:62
Definition: vlc_url.h:145
struct vlc_http_cookie_jar_t * vlc_http_mgr_get_jar(struct vlc_http_mgr *mgr)
Definition: connmgr.c:285
unsigned i_port
Definition: vlc_url.h:151
ssize_t vlc_http_outfile_write(struct vlc_http_outfile *f, block_t *b)
Writes data.
Definition: outfile.c:101
int vlc_http_msg_get_status(const struct vlc_http_msg *m)
Gets response status code.
Definition: message.c:168
char * authority
Definition: message.c:65
char * psz_path
Definition: vlc_url.h:152
Definition: vlc_block.h:117
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 *m, bool idempotent, bool payload)
Sends an HTTP request.
Definition: connmgr.c:273
int vlc_http_msg_write(struct vlc_http_msg *m, block_t *block, bool eos)
Sends HTTP data.
Definition: message.c:299
int vlc_http_msg_add_cookies(struct vlc_http_msg *m, vlc_http_cookie_jar_t *jar)
Definition: message.c:946
struct vlc_http_outfile * vlc_http_outfile_create(struct vlc_http_mgr *mgr, const char *uri, const char *ua, const char *user, const char *pwd)
Creates an HTTP output file.
Definition: outfile.c:36