author: laplante@plcb.ca date: 2024-03-17 title: “HTTP::HEADER_ADD Function” version: 1.0.0 section: 1g category: GOWEB/HTTP
http::header_add — Add a header value http::headerAdd — Add a header value
http::header_add(key, value… [, error: variable, set: “server|client|both”])
The http::header_add
function appends a value to the specified header
key.
It can be used to add custom headers or extend existing ones.
By default, headers can be set for either server-side or client-side
communication. The set
parameter determines the scope:
// Add a custom header to the server response
header_add("X-Goweb", "0.0.17", "x1");
laplante@plcb.ca