Refactor non-blocking-http sending