Set the request method.