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.ObjectA 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>getHeaderFields(java.lang.String name)Returns the value of the named header field.
-
-
-
Method Detail
-
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.
-
-