I don't see any particular reason why threads wouldn't work either.
(But I have not threaded around the HTTP API and there may be some nuances.)