HTTP::HEADER_ADD 1g 2024-03-17 laplante@plcb.ca GOWEB/HTTP


author: laplante@plcb.ca date: 2024-03-17 title: “HTTP::HEADER_ADD Function” version: 1.0.0 section: 1g category: GOWEB/HTTP


Name

http::header_add — Add a header value http::headerAdd — Add a header value

Synopsis

http::header_add(key, value… [, error: variable, set: “server|client|both”])

Description

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:

Examples

// Add a custom header to the server response
header_add("X-Goweb", "0.0.17", "x1");

Author

laplante@plcb.ca

See also

Version