add getRequestHandler() method to handle client instance.

alternative PR for #6