10#if defined(NO_RESPONSE_BUFFERING) && defined(USE_HTTP2)
11#error "HTTP2 works only if NO_RESPONSE_BUFFERING is not set"
19#if !defined(NO_RESPONSE_BUFFERING)
44 const char *http_version = conn->
request_info.http_version;
47 if ((status_code < 100) || (status_code > 999)) {
59 conn,
"HTTP/%s %i %s\r\n", http_version, status_code,
status_txt)
83 if ((conn ==
NULL) || (status < 100) || (status > 999)) {
101#if !defined(NO_RESPONSE_BUFFERING)
135#if !defined(NO_RESPONSE_BUFFERING)
153#if !defined(NO_RESPONSE_BUFFERING)
239 for (i = 0; i <
num_hdr; i++) {
254#if defined(USE_HTTP2)
272#if !defined(NO_RESPONSE_BUFFERING)
295#if !defined(NO_RESPONSE_BUFFERING)
296#if defined(USE_HTTP2)
300 return (
ret ? 0 : -4);
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
#define mg_malloc_ctx(a, c)
@ PROTOCOL_TYPE_WEBSOCKET
int mg_printf(struct mg_connection *conn, const char *fmt,...)
const char * mg_get_response_code_text(const struct mg_connection *conn, int response_code)
static void gmt_time_string(char *buf, size_t buf_len, time_t *t)
int mg_write(struct mg_connection *conn, const void *buf, size_t len)
static const char * suggest_connection_header(const struct mg_connection *conn)
static char * mg_strdup_ctx(const char *str, struct mg_context *ctx)
@ CONNECTION_TYPE_REQUEST
int mg_strcasecmp(const char *s1, const char *s2)
static __inline void mg_free(void *a)
int mg_response_header_add(struct mg_connection *conn, const char *header, const char *value, int value_len)
int mg_response_header_send(struct mg_connection *conn)
static int parse_http_headers(char **buf, struct mg_header hdr[MG_MAX_HEADERS])
int mg_response_header_add_lines(struct mg_connection *conn, const char *http1_headers)
static void free_buffered_response_header_list(struct mg_connection *conn)
int mg_response_header_start(struct mg_connection *conn, int status)
static int send_http1_response_status_line(struct mg_connection *conn)
struct mg_response_info response_info
struct mg_request_info request_info
struct mg_context * phys_ctx