public static interface

Connection.Request

implements Connection.Base<T extends Base>
org.jsoup.Connection.Request
Known Indirect Subclasses

Class Overview

Represents a HTTP request.

Summary

Public Methods
abstract Connection.Request data(Connection.KeyVal keyval)
Add a data parameter to the request
abstract Collection<Connection.KeyVal> data()
Get all of the request's data parameters
abstract Connection.Request followRedirects(boolean followRedirects)
Configures the request to (not) follow server redirects.
abstract boolean followRedirects()
Get the current followRedirects configuration.
abstract Connection.Request timeout(int millis)
Update the request timeout.
abstract int timeout()
Get the request timeout, in milliseconds.
[Expand]
Inherited Methods
From interface org.jsoup.Connection.Base

Public Methods

public abstract Connection.Request data (Connection.KeyVal keyval)

Add a data parameter to the request

Parameters
keyval data to add.
Returns
  • this Request, for chaining

public abstract Collection<Connection.KeyVal> data ()

Get all of the request's data parameters

Returns
  • collection of keyvals

public abstract Connection.Request followRedirects (boolean followRedirects)

Configures the request to (not) follow server redirects. By default this is true.

Parameters
followRedirects true if server redirects should be followed.
Returns
  • this Connection, for chaining

public abstract boolean followRedirects ()

Get the current followRedirects configuration.

Returns
  • true if followRedirects is enabled.

public abstract Connection.Request timeout (int millis)

Update the request timeout.

Parameters
millis timeout, in milliseconds
Returns
  • this Request, for chaining

public abstract int timeout ()

Get the request timeout, in milliseconds.

Returns
  • the timeout in milliseconds.