GOLF(2gg)

NAME
silent-header - (web)

PURPOSE
Do not output HTTP headers.

SYNTAX

        silent-header

DESCRIPTION
silent-header will suppress the output of HTTP headers, such as with out-header, or in any other case where headers are output. The effect applies to current request only; if you use it conditionally, then you can have it on or off dynamically.

If you want to suppress the headers for all service handlers (as if silent-header were implied at the beginning of each), then for a command-line program, use "--silent-header" option in "gg -r" when running it; to suppress the headers in services, use "-z" option in mgrg.

silent-header must be used prior to outputting headers, meaning either prior to any output (if out-header is not used) or prior to first out-header.

There are many uses for silent-header, among them:

    • A command-line program (such as a command line program) may use it to produce generic output, without any headers,

    • the output from a program may be redirected to a web file (such as html), in case of dynamic content that rarely changes,

    • a web program may output a completely different (non-HTTP) set of headers, etc.

EXAMPLES

        silent-header

        // No headers output

SEE ALSO
 Web

call-web out-header send-file silent-header See all documentation