Function addResponseHeader

  • Appends HTTP header value to server response.

    Avoids value duplication.

    Parameters

    • response: ServerResponse<IncomingMessage>

      HTTP response to add header to.

    • name: string

      Target HTTP header name.

    • value: string

      HTTP header value to add.

    Returns void

Generated using TypeDoc