public static interface Connection.Response extends Connection.Base<Connection.Response>
Modifier and Type | Method and Description |
---|---|
java.lang.String |
body()
Get the body of the response as a plain string.
|
byte[] |
bodyAsBytes()
Get the body of the response as an array of bytes.
|
java.lang.String |
charset()
Get the character set name of the response.
|
java.lang.String |
contentType()
Get the response content type (e.g.
|
Document |
parse()
Parse the body of the response as a Document.
|
int |
statusCode()
Get the status code of the response.
|
java.lang.String |
statusMessage()
Get the status message of the response.
|
cookie, cookie, cookies, hasCookie, hasHeader, header, header, headers, method, method, removeCookie, removeHeader, url, url
int statusCode()
java.lang.String statusMessage()
java.lang.String charset()
java.lang.String contentType()
Document parse() throws java.io.IOException
java.io.IOException
- on errorjava.lang.String body()
byte[] bodyAsBytes()
Copyright © 2009-2012 Jonathan Hedley. All Rights Reserved.