Define the request() method.