type IncomingMessage = any ; const WEBHOOK_HEADERS = [ "x-github-event" , "x-hub-signature-256" , "x-github-delivery" , ] ; export function getMissingHeaders ( request ) { return WEBHOOK_HEADERS . filter ( ( header ) => ! ( header in request . headers ) ) ; }