This reverts commit 7a8c9895074e03bc7fcff30bd561eaef4fa76dfa.
* Don't send nil requests. * Fix import name and get rid of condition. * Let registered encoder deal with nil requests. * Break encode into encode and compress.