Possibility to have a shared HttpTransport
Closed this issue · 1 comments
XtraSonic commented
In the google documentation of HttpTransport it is mentioned that
For maximum efficiency, applications should use a single globally-shared instance of the HTTP transport.
GoogleHttpClient creates a new NetHttpTransport each time a new instance is created. According to the google documentation, this results in loss of efficiency. A solution for this would be to be able to give as a parameter an existing HttpTransport and use that in stead of creating a new NetHttpTransport each time.