public static class HttpConnection.Request extends Object implements Connection.Request
| 限定符和类型 | 方法和说明 |
|---|---|
Collection<Connection.KeyVal> |
data()
Get all of the request's data parameters
|
HttpConnection.Request |
data(Connection.KeyVal keyval)
Add a data parameter to the request
|
boolean |
followRedirects()
Get the current followRedirects configuration.
|
Connection.Request |
followRedirects(boolean followRedirects)
Configures the request to (not) follow server redirects.
|
int |
timeout()
Get the request timeout, in milliseconds.
|
HttpConnection.Request |
timeout(int millis)
Update the request timeout.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcookie, cookie, cookies, hasCookie, hasHeader, header, header, headers, method, method, removeCookie, removeHeader, url, urlpublic int timeout()
Connection.Requesttimeout 在接口中 Connection.Requestpublic HttpConnection.Request timeout(int millis)
Connection.Requesttimeout 在接口中 Connection.Requestmillis - timeout, in millisecondspublic boolean followRedirects()
Connection.RequestfollowRedirects 在接口中 Connection.Requestpublic Connection.Request followRedirects(boolean followRedirects)
Connection.RequestfollowRedirects 在接口中 Connection.RequestfollowRedirects - true if server redirects should be followed.public HttpConnection.Request data(Connection.KeyVal keyval)
Connection.Requestdata 在接口中 Connection.Requestkeyval - data to add.public Collection<Connection.KeyVal> data()
Connection.Requestdata 在接口中 Connection.RequestCopyright © 2021. All rights reserved.