public static interface Connection.Request extends Connection.Base<Connection.Request>
| 限定符和类型 | 方法和说明 |
|---|---|
Collection<Connection.KeyVal> |
data()
Get all of the request's data parameters
|
Connection.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.
|
Connection.Request |
timeout(int millis)
Update the request timeout.
|
cookie, cookie, cookies, hasCookie, hasHeader, header, header, headers, method, method, removeCookie, removeHeader, url, urlint timeout()
Connection.Request timeout(int millis)
millis - timeout, in millisecondsboolean followRedirects()
Connection.Request followRedirects(boolean followRedirects)
followRedirects - true if server redirects should be followed.Connection.Request data(Connection.KeyVal keyval)
keyval - data to add.Collection<Connection.KeyVal> data()
Copyright © 2021. All rights reserved.