Helper methods and constants to determine HTTP request method.