Move out reading function

It can be used by user inside callback to read response on failure or
destroy it.