Parse the request to get its type