retrofit.client
Class Request

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

public final class Request
extends Object

Encapsulates all of the information necessary to make an HTTP request.


Constructor Summary
Request(String method, String url, List<Header> headers, TypedOutput body)
           
 
Method Summary
 TypedOutput getBody()
          Returns the request body or null.
 List<Header> getHeaders()
          Returns an unmodifiable list of headers, never null.
 String getMethod()
          HTTP method verb.
 String getUrl()
          Target URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Request

public Request(String method,
               String url,
               List<Header> headers,
               TypedOutput body)
Method Detail

getMethod

public String getMethod()
HTTP method verb.


getUrl

public String getUrl()
Target URL.


getHeaders

public List<Header> getHeaders()
Returns an unmodifiable list of headers, never null.


getBody

public TypedOutput getBody()
Returns the request body or null.



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