C API Reference -- Ns_ConnSetRequiredHeaders

### Ns_ConnSetRequiredHeaders

#### Overview

Return the required HTTP headers

#### Syntax

        void Ns_ConnSetRequiredHeaders(
        Ns_Conn *conn,
        char *contentType,
        int contentLength
        );

#### Description

The Ns_ConnSetRequiredHeaders function writes the required headers of the HTTP response. If contentType is NULL, it defaults to 'text/html'. If contentLength is 0, no `contentLength` header will be written out.

The Ns_ConnReturnStatus function can be used to return a status-only response to the client.

Top of Page
Copyright © 1998-99 America Online, Inc.