retrofit.client
Class Response

java.lang.Object
  extended by retrofit.client.Response

public final class Response
extends Object

An HTTP response.


Constructor Summary
Response(int status, String reason, List<Header> headers, TypedInput body)
           
 
Method Summary
 TypedInput getBody()
          Response body.
 List<Header> getHeaders()
          An unmodifiable collection of headers.
 String getReason()
          Status line reason phrase.
 int getStatus()
          Status line code.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Response

public Response(int status,
                String reason,
                List<Header> headers,
                TypedInput body)
Method Detail

getStatus

public int getStatus()
Status line code.


getReason

public String getReason()
Status line reason phrase.


getHeaders

public List<Header> getHeaders()
An unmodifiable collection of headers.


getBody

public TypedInput getBody()
Response body. May be null.



Copyright © 2013 Square, Inc.. All Rights Reserved.