| Package | Description |
|---|---|
| us.abstracta.jmeter.javadsl | |
| us.abstracta.jmeter.javadsl.http |
| Modifier and Type | Method and Description |
|---|---|
static DslHttpDefaults |
JmeterDsl.httpDefaults()
Builds an HTTP request defaults element that allows setting default values used by HTTP
samplers.
|
| Modifier and Type | Method and Description |
|---|---|
DslHttpDefaults |
DslHttpDefaults.clientImpl(DslHttpSampler.HttpClientImpl clientImpl)
Allows specifying which http client implementation to use by default for HTTP samplers.
|
DslHttpDefaults |
DslHttpDefaults.connectionsTtl(Duration ttl)
Allows specifying the connections ttl (time-to-live) used to determine how much time a
connection can be kept open.
|
DslHttpDefaults |
DslHttpDefaults.connectionTimeout(Duration timeout)
Allows to set the default maximum amount of time to wait for an HTTP connection to be
established.
|
DslHttpDefaults |
DslHttpDefaults.downloadEmbeddedResources()
Allows enabling automatic download of HTML embedded resources (images, iframes, etc) by
default.
|
DslHttpDefaults |
DslHttpDefaults.downloadEmbeddedResources(boolean enable)
Same as
downloadEmbeddedResources() but allowing to enable and disable the setting. |
DslHttpDefaults |
DslHttpDefaults.downloadEmbeddedResourcesMatching(String urlRegex)
Same as
downloadEmbeddedResources() but allowing to specify which embedded resources
to actually download. |
DslHttpDefaults |
DslHttpDefaults.downloadEmbeddedResourcesNotMatching(String urlRegex)
Same as
downloadEmbeddedResources() but allowing to ignore embedded resources with URL
matching a given regular expression. |
DslHttpDefaults |
DslHttpDefaults.encoding(Charset encoding)
Specifies the default charset to be used for encoding URLs and requests contents.
|
DslHttpDefaults |
DslHttpDefaults.followRedirects(boolean enable)
Specifies if by default HTTP redirects should be automatically followed (a new request
automatically created) when detected, or not.
|
DslHttpDefaults |
DslHttpDefaults.host(String host)
Specifies the default server host (domain) to be used in the HTTP samplers.
|
DslHttpDefaults |
DslHttpDefaults.path(String path)
Specifies the default URL path to be used in the HTTP samplers.
|
DslHttpDefaults |
DslHttpDefaults.port(int port)
Specifies the default port to be used in the HTTP samplers.
|
DslHttpDefaults |
DslHttpDefaults.protocol(String protocol)
Specifies the default protocol (eg: HTTP, HTTPS) to be used in the HTTP samplers.
|
DslHttpDefaults |
DslHttpDefaults.proxy(String url)
Allows specifying a proxy through which all http requests will be sent to their final
destination.
|
DslHttpDefaults |
DslHttpDefaults.proxy(String url,
String username,
String password)
Same as
proxy(String) but allowing also to specify proxy credentials. |
DslHttpDefaults |
DslHttpDefaults.resetConnectionsBetweenIterations()
Specifies to reset (drop and recreate) connections on each thread group iteration.
|
DslHttpDefaults |
DslHttpDefaults.resetConnectionsBetweenIterations(boolean enable)
Same as
resetConnectionsBetweenIterations() but allowing to enable or disable
setting. |
DslHttpDefaults |
DslHttpDefaults.responseTimeout(Duration timeout)
Allows to set the maximum amount of time to wait for a response to an HTTP request.
|
DslHttpDefaults |
DslHttpDefaults.url(String url)
Specifies the default URL for HTTP samplers.
|
Copyright © 2023. All rights reserved.