public final class ParseHttpResponse extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ParseHttpResponse.Builder
Builder for
ParseHttpResponse . |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getAllHeaders()
Gets all headers from this
ParseHttpResponse . |
InputStream |
getContent()
Returns the content of the
ParseHttpResponse 's body. |
String |
getContentType()
Gets the
Content-Type of this ParseHttpResponse . |
String |
getHeader(String name)
Retrieves the header value from this
ParseHttpResponse by the given header name. |
String |
getReasonPhrase()
Gets the reason phrase of this
ParseHttpResponse . |
int |
getStatusCode()
Gets the status code of this
ParseHttpResponse . |
long |
getTotalSize()
Returns the size of the
ParseHttpResponse 's body. |
public int getStatusCode()
ParseHttpResponse
.ParseHttpResponse
.public InputStream getContent()
ParseHttpResponse
's body. The content can only
be read once and can't be reset.ParseHttpResponse
's body.public long getTotalSize()
ParseHttpResponse
's body. -1
if the size of the
ParseHttpResponse
's body is unknown.ParseHttpResponse
's body.public String getReasonPhrase()
ParseHttpResponse
.ParseHttpResponse
.public String getContentType()
Content-Type
of this ParseHttpResponse
.Content-Type
of this ParseHttpResponse
.public String getHeader(String name)
ParseHttpResponse
by the given header name.name
- The name of the header.