public class BrowserRequest extends Object implements GetRequest, PostRequest
| 限定符和类型 | 方法和说明 |
|---|---|
PostRequest |
body(Object o) |
PostRequest |
body(Object o,
ContentType contentType) |
Request |
charset(Charset charset) |
Request |
charset(String charset) |
Request |
connTimeout(int connTimeout) |
PostRequest |
contentType(ContentType contentType) |
Request |
cookie(String key,
String val) |
Request |
cookies(Cookies cookies) |
Connect |
getConnect() |
Request |
header(Map<String,String> header) |
Request |
header(String key,
String val) |
GetRequest |
param(Object param) |
GetRequest |
param(String key,
Object val) |
Request |
readTimeout(int readTimeout) |
Response |
send() |
String |
toString() |
Request |
userAgent(String userAgent) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitbodyBuilder, bodyBuilder, bodyBuilderByFORM, bodyBuilderByJSON, formBody, jsonBodypublic Connect getConnect()
getConnect 在接口中 Requestpublic PostRequest body(Object o, ContentType contentType)
body 在接口中 PostRequestpublic PostRequest body(Object o)
body 在接口中 PostRequestpublic PostRequest contentType(ContentType contentType)
contentType 在接口中 PostRequestpublic GetRequest param(Object param)
param 在接口中 GetRequestpublic GetRequest param(String key, Object val)
param 在接口中 GetRequestpublic Request connTimeout(int connTimeout)
connTimeout 在接口中 Requestpublic Request readTimeout(int readTimeout)
readTimeout 在接口中 RequestCopyright © 2023. All rights reserved.