simple clone of requests library