check headers

Сheck the headers in the request

Declare `matchRequest()` by assignment to a var: `var matchRequests = function(...)`