Package io.ably.lib.http
Class HttpCore.Response
java.lang.Object
io.ably.lib.http.HttpCore.Response
- Enclosing class:
- HttpCore
A type encapsulating an httpCore response
-
Field Summary
Modifier and TypeFieldDescriptionbyte[]
int
int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetHeaderField
(String name) getHeaderFields
(String name) Returns the value of the named header field.
-
Field Details
-
statusCode
public int statusCode -
statusLine
-
headers
-
contentType
-
contentLength
public int contentLength -
body
public byte[] body
-
-
Constructor Details
-
Response
public Response()
-
-
Method Details
-
getHeaderFields
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
null
if there is no such field in the header.
-
getHeaderField
-