change configureRequest to return URLRequest.
change configureRequest to return URLRequest.