Package io.ably.lib.http
Class HttpCore.Response
java.lang.Object
io.ably.lib.http.HttpCore.Response
- Enclosing class:
- HttpCore
public static class HttpCore.Response
extends java.lang.Object
A type encapsulating an httpCore response
-
Field Summary
Fields Modifier and Type Field Description byte[]bodyintcontentLengthjava.lang.StringcontentTypejava.util.Map<java.lang.String,java.util.List<java.lang.String>>headersintstatusCodejava.lang.StringstatusLine -
Constructor Summary
Constructors Constructor Description Response() -
Method Summary
Modifier and Type Method Description java.util.List<java.lang.String>getHeaderFields(java.lang.String name)Returns the value of the named header field.
-
Field Details
-
statusCode
public int statusCode -
statusLine
public java.lang.String statusLine -
headers
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers -
contentType
public java.lang.String contentType -
contentLength
public int contentLength -
body
public byte[] body
-
-
Constructor Details
-
Response
public Response()
-
-
Method Details
-
getHeaderFields
public java.util.List<java.lang.String> getHeaderFields(java.lang.String name)Returns the value of the named header field.If called on a connection that sets the same header multiple times with possibly different values, only the last value is returned.
- Parameters:
name- the name of a header field.- Returns:
- the value of the named header field, or
nullif there is no such field in the header.
-