[api] Allow for providing a custom `request` option

Since monkey punching `nano` is impossible, allow user to provide a
custom `request` option for failovers and similar.