index: inline the `sendRequest()` function

I don't like "util" libs.