burp.api.montoya.http.RequestOptions Maven / Gradle / Ivy
package burp.api.montoya.http;
import static burp.api.montoya.internal.ObjectFactoryLocator.FACTORY;
/**
* Interface used to specify options for making HTTP requests.
*/
public interface RequestOptions
{
/**
* Specify HTTP mode to be used when request sent.
*
* @param httpMode An {@link HttpMode} enum value which indicates how a request should be sent.
*
* @return request options
*/
RequestOptions withHttpMode(HttpMode httpMode);
/**
* Specify connectionId when sending request over specific connection.
*
* @param connectionId The connection identifier to use.
*
* @return request options
*/
RequestOptions withConnectionId(String connectionId);
/**
* Enforce upstream TLS verification when request sent.
*
* @return request options
*/
RequestOptions withUpstreamTLSVerification();
/**
* Specify redirection mode to be used when request sent.
*
* @param redirectionMode A {@link RedirectionMode} enum value which indicates how redirects should be handled.
*
* @return request options
*/
RequestOptions withRedirectionMode(RedirectionMode redirectionMode);
/**
* Use to obtain a new RequestOptions instance
*
* @return request options
*/
static RequestOptions requestOptions()
{
return FACTORY.requestOptions();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy