added support for a callback block when creating the request so a sleep can be added or the socket can be read