Renamed createClient to request, removed IO dependency from request.