public final class Request extends Object
Constructor and Description |
---|
Request(String method,
String url,
List<Header> headers,
TypedOutput body) |
Modifier and Type | Method and Description |
---|---|
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.
|
public Request(String method, String url, List<Header> headers, TypedOutput body)
public String getMethod()
public String getUrl()
public TypedOutput getBody()
null
.Copyright © 2015 Square, Inc.. All Rights Reserved.