lua-requests
lua-requests copied to clipboard
Implement replacing the HTTP backend
From the documentation:
The HTTP backend can be swapped out for anything that has the same API as LuaSocket's
socket.http. This is done by setting the value ofrequests.http_socket. Swapping the HTTPS backend can be done by swapping outrequests.https_socket.
Something is wrong with this, it locks up quite a few of the tests.