Package burp.api.montoya.http
Interface RequestOptions
public interface RequestOptions
Interface used to specify options for making HTTP requests.
-
Method Summary
Modifier and TypeMethodDescriptionstatic RequestOptions
Use to obtain a new RequestOptions instancewithConnectionId
(String connectionId) Specify connectionId when sending request over specific connection.withHttpMode
(HttpMode httpMode) Specify HTTP mode to be used when request sent.withRedirectionMode
(RedirectionMode redirectionMode) Specify redirection mode to be used when request sent.withResponseTimeout
(long timeoutMs) Specify the timeout to be used while reading the response.withServerNameIndicator
(String serverNameIndicator) Specify the server name indicator (SNI) to be used when request sent.Enforce upstream TLS verification when request sent.
-
Method Details
-
withHttpMode
Specify HTTP mode to be used when request sent.- Parameters:
httpMode
- AnHttpMode
enum value which indicates how a request should be sent.- Returns:
- request options
-
withConnectionId
Specify connectionId when sending request over specific connection.- Parameters:
connectionId
- The connection identifier to use.- Returns:
- request options
-
withUpstreamTLSVerification
RequestOptions withUpstreamTLSVerification()Enforce upstream TLS verification when request sent.- Returns:
- request options
-
withRedirectionMode
Specify redirection mode to be used when request sent.- Parameters:
redirectionMode
- ARedirectionMode
enum value which indicates how redirects should be handled.- Returns:
- request options
-
withServerNameIndicator
Specify the server name indicator (SNI) to be used when request sent.- Parameters:
serverNameIndicator
- The server name indicator to use.- Returns:
- request options
-
withResponseTimeout
Specify the timeout to be used while reading the response.- Parameters:
timeoutMs
- timeout in ms. Zero indicates no timeout.- Returns:
- request options
-
requestOptions
Use to obtain a new RequestOptions instance- Returns:
- request options
-