public class RequestResponse
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBody()
Returns the raw HTTP body from the Riot Api.
|
int |
getCode()
Returns the HTTP response code from the Riot Api.
|
java.lang.String |
getHeaderField(java.lang.String name)
Returns the value for a given HTTP header field name.
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getHeaderFields()
Returns the HTTP header fields from the Riot Api.
|
public int getCode()
public java.lang.String getBody()
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getHeaderFields()
public java.lang.String getHeaderField(java.lang.String name)
If called on a header field with multiple values, only the last value is returned.
name
- the name of the header fieldnull
if there is no such field in the header.