• name {string}
    • Returns: {boolean}

    Returns true if the header identified by name is currently set in the outgoing headers. The header name matching is case-insensitive.

    1. const hasContentType = response.hasHeader('content-type');