added helper to retrieve request method