#define VLC_FORMAT(x, y)
Definition: vlc_common.h:100
struct vlc_http_conn * vlc_h2_conn_create(void *ctx, struct vlc_tls *)
Definition: h2conn.c:719
static void vlc_chunked_close(struct vlc_http_stream *stream, bool abort)
Definition: chunked.c:134
char * vlc_tls_GetLine(vlc_tls_t *session)
Receives a text line through a socket.
Definition: tls.c:307
const struct vlc_http_stream_cbs * cbs
Definition: message.h:342
struct vlc_http_stream * vlc_chunked_open(struct vlc_http_stream *parent, struct vlc_tls *tls)
Definition: chunked.c:153
bool error
Definition: chunked.c:63
size_t i_buffer
Payload length.
Definition: vlc_block.h:116
void void vlc_http_dbg(void *, const char *msg,...) VLC_FORMAT(2
const struct vlc_http_conn_cbs * cbs
Definition: conn.h:41
ssize_t vlc_tls_Read(vlc_tls_t *session, void *buf, size_t len, bool waitall)
Receives data through a socket.
Definition: tls.c:227
void(* release)(struct vlc_http_conn *)
Definition: conn.h:36
static void * vlc_chunked_fatal(struct vlc_chunked_stream *s)
Definition: chunked.c:49
static struct vlc_http_stream_cbs vlc_chunked_callbacks
Definition: chunked.c:146
struct vlc_http_conn * vlc_h1_conn_create(void *ctx, struct vlc_tls *, bool proxy)
Definition: h1conn.c:322
Transport layer socket.
Definition: vlc_tls.h:43
bool eof
Definition: chunked.c:62
struct vlc_http_stream * vlc_h1_request(void *ctx, const char *hostname, unsigned port, bool proxy, const struct vlc_http_msg *req, bool idempotent, struct vlc_http_conn **restrict connp)
Sends an HTTP/1.x request through a new connection.
Definition: h1conn.c:339
HTTP stream callbacks.
Definition: message.h:332
struct vlc_http_stream stream
Definition: chunked.c:58
struct vlc_tls * tls
Definition: chunked.c:60
struct vlc_http_stream *(* stream_open)(struct vlc_http_conn *, const struct vlc_http_msg *)
Definition: conn.h:34
static block_t * vlc_chunked_read(struct vlc_http_stream *stream)
Definition: chunked.c:63
static void block_Release(block_t *block)
Releases a block.
Definition: vlc_block.h:181
uintmax_t chunk_length
Definition: chunked.c:61
HTTP stream.
Definition: message.h:340
void *const vlc_http_error
Error pointer value.
Definition: message.c:55
#define container_of(ptr, type, member)
Definition: vlc_common.h:944
static void vlc_http_conn_release(struct vlc_http_conn *conn)
Definition: conn.h:51
struct vlc_http_stream * parent
Definition: chunked.c:59
struct vlc_tls * tls
Definition: conn.h:42
#define unlikely(p)
Definition: vlc_common.h:114
block_t * block_Alloc(size_t size)
Allocates a block.
Definition: block.c:119
uint8_t * p_buffer
Payload start.
Definition: vlc_block.h:115
void vlc_http_err(void *, const char *msg,...) VLC_FORMAT(2
static struct vlc_http_stream * vlc_http_stream_open(struct vlc_http_conn *conn, const struct vlc_http_msg *m)
Definition: conn.h:46
Definition: vlc_block.h:111
static struct vlc_http_msg * vlc_chunked_wait(struct vlc_http_stream *stream)
Definition: chunked.c:55
static void vlc_http_stream_close(struct vlc_http_stream *s, bool abort)
Closes an HTTP stream.
Definition: message.h:382