Set request method.