|
static bool | vlc_http_is_token (const char *) |
|
static ssize_t | vlc_http_msg_find_header (const struct vlc_http_msg *m, const char *name) |
|
static int | vlc_http_msg_vadd_header (struct vlc_http_msg *m, const char *name, const char *fmt, va_list ap) |
|
int | vlc_http_msg_add_header (struct vlc_http_msg *m, const char *name, const char *fmt,...) |
|
const char * | vlc_http_msg_get_header (const struct vlc_http_msg *m, const char *name) |
| Looks up an header field. More...
|
|
int | vlc_http_msg_get_status (const struct vlc_http_msg *m) |
| Gets response status code. More...
|
|
const char * | vlc_http_msg_get_method (const struct vlc_http_msg *m) |
| Gets request method. More...
|
|
const char * | vlc_http_msg_get_scheme (const struct vlc_http_msg *m) |
| Gets request scheme. More...
|
|
const char * | vlc_http_msg_get_authority (const struct vlc_http_msg *m) |
| Gets request authority. More...
|
|
const char * | vlc_http_msg_get_path (const struct vlc_http_msg *m) |
| Gets request absolute path. More...
|
|
void | vlc_http_msg_destroy (struct vlc_http_msg *m) |
| Destroys an HTTP message. More...
|
|
struct vlc_http_msg * | vlc_http_req_create (const char *method, const char *scheme, const char *authority, const char *path) |
| Creates an HTTP request. More...
|
|
struct vlc_http_msg * | vlc_http_resp_create (unsigned status) |
| Creates an HTTP response. More...
|
|
void | vlc_http_msg_attach (struct vlc_http_msg *m, struct vlc_http_stream *s) |
|
struct vlc_http_msg * | vlc_http_msg_iterate (struct vlc_http_msg *m) |
| Gets next response headers. More...
|
|
struct vlc_http_msg * | vlc_http_msg_get_initial (struct vlc_http_stream *s) |
|
struct vlc_http_msg * | vlc_http_msg_get_final (struct vlc_http_msg *m) |
| Gets final response headers. More...
|
|
block_t * | vlc_http_msg_read (struct vlc_http_msg *m) |
| Receives HTTP data. More...
|
|
char * | vlc_http_msg_format (const struct vlc_http_msg *m, size_t *restrict lenp, bool proxied) |
| Formats an HTTP 1.1 message header. More...
|
|
struct vlc_http_msg * | vlc_http_msg_headers (const char *msg) |
| Parses an HTTP 1.1 message header. More...
|
|
struct vlc_h2_frame * | vlc_http_msg_h2_frame (const struct vlc_http_msg *m, uint_fast32_t stream_id, bool eos) |
| Formats an HTTP 2.0 HEADER frame. More...
|
|
struct vlc_http_msg * | vlc_http_msg_h2_headers (unsigned n, const char *const hdrs[][2]) |
| Parses an HTTP 2.0 header table. More...
|
|
static int | vlc_http_istoken (int c) |
|
static int | vlc_http_isctext (int c) |
|
static size_t | vlc_http_token_length (const char *str) |
|
static size_t | vlc_http_quoted_length (const char *str) |
|
const char * | vlc_http_next_token (const char *value) |
| Finds next token. More...
|
|
static const char * | vlc_http_get_token (const char *value, const char *token) |
|
static char * | vlc_http_get_token_value (const char *value, const char *token) |
|
const char * | vlc_http_msg_get_token (const struct vlc_http_msg *msg, const char *field, const char *token) |
| Looks up a token in a header field. More...
|
|
static size_t | vlc_http_comment_length (const char *str) |
|
static bool | vlc_http_is_agent (const char *s) |
|
int | vlc_http_msg_add_agent (struct vlc_http_msg *m, const char *str) |
| Sets the agent field. More...
|
|
const char * | vlc_http_msg_get_agent (const struct vlc_http_msg *m) |
| Gets the agent field. More...
|
|
int | vlc_http_msg_add_time (struct vlc_http_msg *m, const char *hname, const time_t *t) |
| Adds a timestamp header field. More...
|
|
int | vlc_http_msg_add_atime (struct vlc_http_msg *m) |
| Adds a Date header field. More...
|
|
static time_t | vlc_http_mktime (const char *str) |
|
time_t | vlc_http_msg_get_time (const struct vlc_http_msg *m, const char *name) |
| Parses a timestamp header field. More...
|
|
time_t | vlc_http_msg_get_atime (const struct vlc_http_msg *m) |
| Gets message date. More...
|
|
time_t | vlc_http_msg_get_mtime (const struct vlc_http_msg *m) |
| Gets resource date. More...
|
|
unsigned | vlc_http_msg_get_retry_after (const struct vlc_http_msg *m) |
| Gets retry timeout. More...
|
|
uintmax_t | vlc_http_msg_get_size (const struct vlc_http_msg *m) |
| Gets HTTP payload length. More...
|
|
void | vlc_http_msg_get_cookies (const struct vlc_http_msg *m, vlc_http_cookie_jar_t *jar, const char *host, const char *path) |
|
int | vlc_http_msg_add_cookies (struct vlc_http_msg *m, vlc_http_cookie_jar_t *jar) |
|
char * | vlc_http_msg_get_basic_realm (const struct vlc_http_msg *m) |
|
int | vlc_http_msg_add_creds_basic (struct vlc_http_msg *m, bool proxy, const char *username, const char *password) |
| Adds Basic credentials. More...
|
|