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 Object
A type encapsulating an httpCore response
  • Field Details

    • statusCode

      public int statusCode
    • statusLine

      public String statusLine
    • headers

      public Map<String,List<String>> headers
    • contentType

      public String contentType
    • contentLength

      public int contentLength
    • body

      public byte[] body
  • Constructor Details

    • Response

      public Response()
  • Method Details

    • getHeaderFields

      public List<String> getHeaderFields(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 null if there is no such field in the header.
    • getHeaderField

      public String getHeaderField(String name)