googleapis / google-http-java-client

Google HTTP Client Library for Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HttpRequest should be able to disconnect the LowLevelHttpRequest's connection

lqiu96 opened this issue · comments

HttpRequest should be able to disconnect the LowLevelHttpRequest's connection.

LowLevelHttpRequest should be able to expose a new disconnect() method that will disconnect the connection for each underlying Transport type (Net, Apache, UrlFetch). The LowLevelHttpRequest disconnect method will have a default no-op implementation and each sub-class implementation should implement the disconnect functionality.