Check required headers in a request.