Skip to content

RES_HEADER

Jurek Muszyński edited this page Jul 5, 2020 · 1 revision

bool RES_HEADER(const char *key, const char *value)

Description

Adds an HTTP header to the response.

Returns

true if successful, false if there's no sufficient space in conn[ci]cust_headers.

Example

RES_HEADER("Access-Control-Allow-Origin", "https://example.com");
RES_HEADER("Vary", "Origin");
Clone this wiki locally