ts-lambda-api - v2.5.2
    Preparing search index...

    Function hasHeader

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

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

      Parameters

      • name: string

      Returns boolean

      v7.7.0