• Returns: {string[]}

    Returns an array containing the unique names of the current outgoing headers. All header names are lowercase.

    1. response.setHeader('Foo', 'bar');
    2. response.setHeader('Set-Cookie', ['foo=bar', 'bar=baz']);
    3. const headerNames = response.getHeaderNames();
    4. // headerNames === ['foo', 'set-cookie']