libwebsockets
Lightweight C library for HTML5 websockets
HTML Chunked Substitution

Data Structures

struct  lws_process_html_args
 
struct  lws_process_html_state
 

Typedefs

typedef const char *(* lws_process_html_state_cb) (void *data, int index)
 

Functions

LWS_VISIBLE LWS_EXTERN int lws_chunked_html_process (struct lws_process_html_args *args, struct lws_process_html_state *s)
 

Detailed Description

HTML chunked Substitution

APIs for receiving chunks of text, replacing a set of variable names via a callback, and then prepending and appending HTML chunked encoding headers.

Function Documentation

◆ lws_chunked_html_process()

LWS_VISIBLE LWS_EXTERN int lws_chunked_html_process ( struct lws_process_html_args args,
struct lws_process_html_state s 
)

#include <include/libwebsockets/lws-http.h>

lws_chunked_html_process() - generic chunked substitution

Parameters
argsbuffer to process using chunked encoding
scurrent processing state