Change 'client' to accept different HTTP methods