| 构造器和说明 |
|---|
JoddHttp() |
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
getBodyBytes(jodd.http.HttpResponse httpResponse)
returns raw body as byte array, so e.g. downloaded file can be saved.
|
String |
getBodyText(jodd.http.HttpResponse httpResponse)
body text, ie string encoded as specified by "Content-Type"
注意:
Character encoding used in bodyText() is one set in the response headers.
|
String |
getRawBody(jodd.http.HttpResponse httpResponse)
raw body content, always in ISO-8859-1 encoding.
|
jodd.http.HttpResponse |
send(jodd.http.HttpRequest httpRequest)
获取返回结果对象,返回的所有内容都可以从此对象中获取,
以下的几种方法为常用的几种,所以单独写作方法出来以便调用
|
public jodd.http.HttpResponse send(jodd.http.HttpRequest httpRequest)
httpRequest - httpRequest可通过(新建实例+链式配置)/(静态方法)两种模式生成public String getRawBody(jodd.http.HttpResponse httpResponse)
public String getBodyText(jodd.http.HttpResponse httpResponse)
httpResponse - public byte[] getBodyBytes(jodd.http.HttpResponse httpResponse)
httpResponse - Copyright © 2017. All rights reserved.