Apparently the issue was due to wrong code auto req = HTTPRequests; instead of auto req = HTTPRequest();

Not sure if the bug is in ikod's dlang-requests or in dub.