Added functionality to check for the HTTP request type used for REST
calls.