Feature/fix 11 streaming request

Fix for #11

Allows the configuration of cache path in order to be available for the invoker to clean it after use when doing streaming requests.

cc/ @koke  
If all it does is catching exceptions, I don't think we should have this method. Besides, if `encodeForStreaming` fails but doesn't throw an exception, it can return `nil` and not set any errors