Default implementation does nothing, but subclasses may override to attempt to abort the
connection or release allocated system resources for this connection.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Class LowLevelHttpResponse (2.0.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.0 (latest)](/java/docs/reference/google-http-client/latest/com.google.api.client.http.LowLevelHttpResponse)\n- [1.47.1](/java/docs/reference/google-http-client/1.47.1/com.google.api.client.http.LowLevelHttpResponse)\n- [1.46.3](/java/docs/reference/google-http-client/1.46.3/com.google.api.client.http.LowLevelHttpResponse)\n- [1.45.3](/java/docs/reference/google-http-client/1.45.3/com.google.api.client.http.LowLevelHttpResponse)\n- [1.44.2](/java/docs/reference/google-http-client/1.44.2/com.google.api.client.http.LowLevelHttpResponse)\n- [1.43.2](/java/docs/reference/google-http-client/1.43.2/com.google.api.client.http.LowLevelHttpResponse)\n- [1.42.3](/java/docs/reference/google-http-client/1.42.3/com.google.api.client.http.LowLevelHttpResponse)\n- [1.41.8](/java/docs/reference/google-http-client/1.41.8/com.google.api.client.http.LowLevelHttpResponse) \n\n public abstract class LowLevelHttpResponse\n\nLow-level HTTP response.\n\nThis allows providing a different implementation of the HTTP response that is more compatible\nwith the Java environment used.\n\nImplementation has no fields and therefore thread-safe, but sub-classes are not necessarily\nthread-safe. \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e LowLevelHttpResponse \n\nInherited Members\n-----------------\n\n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nConstructors\n------------\n\n### LowLevelHttpResponse()\n\n public LowLevelHttpResponse()\n\nMethods\n-------\n\n### disconnect()\n\n public void disconnect()\n\nDefault implementation does nothing, but subclasses may override to attempt to abort the\nconnection or release allocated system resources for this connection.\n\n### getContent()\n\n public abstract InputStream getContent()\n\nReturns the HTTP response content input stream or `null` for none.\n\n### getContentEncoding()\n\n public abstract String getContentEncoding()\n\nReturns the content encoding (for example `\"gzip\"`) or `null` for none.\n\n### getContentLength()\n\n public abstract long getContentLength()\n\nReturns the content length or `0` for none.\n\n### getContentType()\n\n public abstract String getContentType()\n\nReturns the content type or `null` for none.\n\n### getHeaderCount()\n\n public abstract int getHeaderCount()\n\nReturns the number of HTTP response headers.\n\nNote that multiple headers of the same name need to be supported, in which case each header\nvalue is treated as a separate header.\n\n### getHeaderName(int index)\n\n public abstract String getHeaderName(int index)\n\nReturns the HTTP response header name at the given zero-based index.\n\n### getHeaderValue(int index)\n\n public abstract String getHeaderValue(int index)\n\nReturns the HTTP response header value at the given zero-based index.\n\n### getReasonPhrase()\n\n public abstract String getReasonPhrase()\n\nReturns the HTTP reason phrase or `null` for none.\n\n### getStatusCode()\n\n public abstract int getStatusCode()\n\nReturns the response status code or `\u003c=0` for none.\n\n### getStatusLine()\n\n public abstract String getStatusLine()\n\nReturns the response status line or `null` for none."]]