c

io.gatling.javaapi.http

HttpProtocolBuilder

final class HttpProtocolBuilder extends ProtocolBuilder

DSL for building HTTP protocol configurations

Immutable, so all methods return a new occurrence and leave the original unmodified.

Linear Supertypes
ProtocolBuilder, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HttpProtocolBuilder
  2. ProtocolBuilder
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new HttpProtocolBuilder(wrapped: http.protocol.HttpProtocolBuilder)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def acceptCharsetHeader(value: Function[Session, String]): HttpProtocolBuilder

    Set the accept-charset header

    Set the accept-charset header

    value

    the header value, expressed as a function

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  5. def acceptCharsetHeader(value: String): HttpProtocolBuilder

    Set the accept-charset header

    Set the accept-charset header

    value

    the header value, expressed as a Gatling Expression Language String

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  6. def acceptEncodingHeader(value: Function[Session, String]): HttpProtocolBuilder

    Set the accept-encoding header

    Set the accept-encoding header

    value

    the header value, expressed as a function

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  7. def acceptEncodingHeader(value: String): HttpProtocolBuilder

    Set the accept-encoding header

    Set the accept-encoding header

    value

    the header value, expressed as a Gatling Expression Language String

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  8. def acceptHeader(value: Function[Session, String]): HttpProtocolBuilder

    Set the accept header

    Set the accept header

    value

    the header value, expressed as a function

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  9. def acceptHeader(value: String): HttpProtocolBuilder

    Set the accept header

    Set the accept header

    value

    the header value, expressed as a Gatling Expression Language String

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  10. def acceptLanguageHeader(value: Function[Session, String]): HttpProtocolBuilder

    Set the accept-language header

    Set the accept-language header

    value

    the header value, expressed as a function

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  11. def acceptLanguageHeader(value: String): HttpProtocolBuilder

    Set the accept-language header

    Set the accept-language header

    value

    the header value, expressed as a Gatling Expression Language String

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  12. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  13. def asyncNameResolution(dnsServers: Array[InetSocketAddress]): HttpProtocolBuilder

    Enable Gatling non-blocking DNS resolution instead of using Java's blocking implementation

    Enable Gatling non-blocking DNS resolution instead of using Java's blocking implementation

    dnsServers

    the DNS servers

    returns

    a new HttpProtocolBuilder instance

  14. def asyncNameResolution(dnsServers: <repeated...>[String]): HttpProtocolBuilder

    Enable Gatling non-blocking DNS resolution instead of using Java's blocking implementation

    Enable Gatling non-blocking DNS resolution instead of using Java's blocking implementation

    dnsServers

    the DNS servers

    returns

    a new HttpProtocolBuilder instance

  15. def authorizationHeader(value: Function[Session, String]): HttpProtocolBuilder

    Set the authorization header

    Set the authorization header

    value

    the header value, expressed as a function

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  16. def authorizationHeader(value: String): HttpProtocolBuilder

    Set the authorization header

    Set the authorization header

    value

    the header value, expressed as a Gatling Expression Language String

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  17. def baseUrl(url: String): HttpProtocolBuilder

    Define the baseUrl that will be used as a prefix for all relative urls

    Define the baseUrl that will be used as a prefix for all relative urls

    url

    the base url

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  18. def baseUrls(urls: List[String]): HttpProtocolBuilder

    Define multiple baseUrls that will be used as a prefix for all relative urls.

    Define multiple baseUrls that will be used as a prefix for all relative urls. Assigned once per virtual user based on a round-robin strategy.

    urls

    the base urls

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  19. def baseUrls(urls: <repeated...>[String]): HttpProtocolBuilder

    Define multiple baseUrls that will be used as a prefix for all relative urls.

    Define multiple baseUrls that will be used as a prefix for all relative urls. Assigned once per virtual user based on a round-robin strategy.

    urls

    the base urls

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  20. def basicAuth(username: Function[Session, String], password: Function[Session, String]): HttpProtocolBuilder

    Set the authorization header for Basic Auth

    Set the authorization header for Basic Auth

    username

    the username, expressed as a function

    password

    the password, expressed as a function

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  21. def basicAuth(username: Function[Session, String], password: String): HttpProtocolBuilder

    Set the authorization header for Basic Auth

    Set the authorization header for Basic Auth

    username

    the username, expressed as a function

    password

    the password, expressed as a Gatling Expression Language String

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  22. def basicAuth(username: String, password: Function[Session, String]): HttpProtocolBuilder

    Set the authorization header for Basic Auth

    Set the authorization header for Basic Auth

    username

    the username, expressed as a Gatling Expression Language String

    password

    the password, expressed as a function

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  23. def basicAuth(username: String, password: String): HttpProtocolBuilder

    Set the authorization header for Basic Auth

    Set the authorization header for Basic Auth

    username

    the username, expressed as a Gatling Expression Language String

    password

    the password, expressed as a Gatling Expression Language String

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  24. def check(checks: List[CheckBuilder]): HttpProtocolBuilder

    Define some common checks to be applied on all the requests.

    Define some common checks to be applied on all the requests.

    checks

    the checks

    returns

    a new HttpProtocolBuilder instance

  25. def check(checks: <repeated...>[CheckBuilder]): HttpProtocolBuilder

    Define some common checks to be applied on all the requests.

    Define some common checks to be applied on all the requests.

    checks

    the checks

    returns

    a new HttpProtocolBuilder instance

  26. def checkIf(condition: BiFunction[Response, Session, Boolean]): TypedCondition

    Define some common checks to be applied on all the requests when a condition holds true.

    Define some common checks to be applied on all the requests when a condition holds true.

    condition

    a condition, expressed as a function that's aware of the HTTP response and the Session

    returns

    the next DSL step

  27. def checkIf(condition: String): UntypedCondition

    Define some common checks to be applied on all the requests when a condition holds true.

    Define some common checks to be applied on all the requests when a condition holds true.

    condition

    a condition, expressed as a Gatling Expression Language String

    returns

    the next DSL step

  28. def checkIf(condition: Function[Session, Boolean]): UntypedCondition

    Define some common checks to be applied on all the requests when a condition holds true.

    Define some common checks to be applied on all the requests when a condition holds true.

    condition

    a condition, expressed as a function

    returns

    the next DSL step

  29. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  30. def connectionHeader(value: Function[Session, String]): HttpProtocolBuilder

    Set the connection header

    Set the connection header

    value

    the header value, expressed as a function

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  31. def connectionHeader(value: String): HttpProtocolBuilder

    Set the connection header

    Set the connection header

    value

    the header value, expressed as a Gatling Expression Language String

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  32. def contentTypeHeader(value: Function[Session, String]): HttpProtocolBuilder

    Set the content-type header

    Set the content-type header

    value

    the header value, expressed as a function

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  33. def contentTypeHeader(value: String): HttpProtocolBuilder

    Set the content-type header

    Set the content-type header

    value

    the header value, expressed as a Gatling Expression Language String

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  34. def digestAuth(username: Function[Session, String], password: Function[Session, String]): HttpProtocolBuilder

    Set the authorization header for Digest Auth

    Set the authorization header for Digest Auth

    username

    the username, expressed as a function

    password

    the password, expressed as a function

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  35. def digestAuth(username: Function[Session, String], password: String): HttpProtocolBuilder

    Set the authorization header for Digest Auth

    Set the authorization header for Digest Auth

    username

    the username, expressed as a function

    password

    the password, expressed as a Gatling Expression Language String

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  36. def digestAuth(username: String, password: Function[Session, String]): HttpProtocolBuilder

    Set the authorization header for Digest Auth

    Set the authorization header for Digest Auth

    username

    the username, expressed as a Gatling Expression Language String

    password

    the password, expressed as a function

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  37. def digestAuth(username: String, password: String): HttpProtocolBuilder

    Set the authorization header for Digest Auth

    Set the authorization header for Digest Auth

    username

    the username, expressed as a Gatling Expression Language String

    password

    the password, expressed as a Gatling Expression Language String

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  38. def disableAutoOrigin(): HttpProtocolBuilder

    Disable the automatic Origin header generation, based the request url.

    Disable the automatic Origin header generation, based the request url.

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  39. def disableAutoReferer(): HttpProtocolBuilder

    Disable the automatic Referer header generation, based on previous requests.

    Disable the automatic Referer header generation, based on previous requests.

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  40. def disableCaching(): HttpProtocolBuilder

    Disable HTTP caching.

    Disable HTTP caching.

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  41. def disableFollowRedirect(): HttpProtocolBuilder

    Disable automatically following redirects

    Disable automatically following redirects

    returns

    a new HttpProtocolBuilder instance

  42. def disableUrlEncoding(): HttpProtocolBuilder

    Disable the automatic url encoding that tries to detect unescaped reserved chars

    Disable the automatic url encoding that tries to detect unescaped reserved chars

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  43. def disableWarmUp(): HttpProtocolBuilder

    Disable the warmup

    Disable the warmup

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  44. def doNotTrackHeader(value: Function[Session, String]): HttpProtocolBuilder

    Set the do-not-track header

    Set the do-not-track header

    value

    the header value, expressed as a function

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  45. def doNotTrackHeader(value: String): HttpProtocolBuilder

    Set the do-not-track header

    Set the do-not-track header

    value

    the header value, expressed as a Gatling Expression Language String

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  46. def enableHttp2(): HttpProtocolBuilder

    Enable HTTP/2

    Enable HTTP/2

    returns

    a new HttpProtocolBuilder instance

  47. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  48. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  49. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  50. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  51. def header(name: CharSequence, value: Function[Session, String]): HttpProtocolBuilder

    Set a header that's common to all HTTP requests

    Set a header that's common to all HTTP requests

    name

    the static header name

    value

    the header value, expressed as a function

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  52. def header(name: CharSequence, value: String): HttpProtocolBuilder

    Set a header that's common to all HTTP requests

    Set a header that's common to all HTTP requests

    name

    the static header name

    value

    the header value, expressed as a Gatling Expression Language String

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  53. def headers(headers: Map[_ <: CharSequence, String]): HttpProtocolBuilder

    Set multiple headers that's common to all HTTP requests

    Set multiple headers that's common to all HTTP requests

    headers

    the headers, names are static but values are expressed as a Gatling Expression Language String

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  54. def hostNameAliases(aliases: Map[String, List[String]]): HttpProtocolBuilder

    Define some aliases to bypass DNS name resolution

    Define some aliases to bypass DNS name resolution

    aliases

    the aliases

    returns

    a new HttpProtocolBuilder instance

  55. def http2PriorKnowledge(remotes: Map[String, Boolean]): HttpProtocolBuilder

    Define the remote hosts that are known to support or not support HTTP/2

    Define the remote hosts that are known to support or not support HTTP/2

    remotes

    the known remote hosts

    returns

    a new HttpProtocolBuilder instance

  56. def inferHtmlResources(deny: DenyList): HttpProtocolBuilder

    Automatically infer resources from HTML payloads

    Automatically infer resources from HTML payloads

    deny

    the deny list to filter out the resources

    returns

    a new HttpProtocolBuilder instance

  57. def inferHtmlResources(allow: AllowList, deny: DenyList): HttpProtocolBuilder

    Automatically infer resources from HTML payloads

    Automatically infer resources from HTML payloads

    allow

    the allow list to filter the resources

    deny

    the deny list to filter out the resources

    returns

    a new HttpProtocolBuilder instance

  58. def inferHtmlResources(allow: AllowList): HttpProtocolBuilder

    Automatically infer resources from HTML payloads

    Automatically infer resources from HTML payloads

    allow

    the allow list to filter the resources

    returns

    a new HttpProtocolBuilder instance

  59. def inferHtmlResources(): HttpProtocolBuilder

    Automatically infer resources from HTML payloads

    Automatically infer resources from HTML payloads

    returns

    a new HttpProtocolBuilder instance

  60. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  61. def localAddress(address: String): HttpProtocolBuilder

    Define the local address to bind from

    Define the local address to bind from

    address

    the local address

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  62. def localAddresses(addresses: List[String]): HttpProtocolBuilder

    Define multiple local addresses to bind from.

    Define multiple local addresses to bind from. Assigned once per virtual user based on a round-robin strategy.

    addresses

    the local addresses

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  63. def localAddresses(addresses: <repeated...>[String]): HttpProtocolBuilder

    Define multiple local addresses to bind from.

    Define multiple local addresses to bind from. Assigned once per virtual user based on a round-robin strategy.

    addresses

    the local addresses

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  64. def maxConnectionsPerHost(max: Int): HttpProtocolBuilder

    Define an HTTP/1.1 connections per host limit for fetching concurrent resources

    Define an HTTP/1.1 connections per host limit for fetching concurrent resources

    max

    the limit

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  65. def maxRedirects(max: Int): HttpProtocolBuilder

    Define the maximum number of redirects in a redirect chain

    Define the maximum number of redirects in a redirect chain

    max

    the limit

    returns

    a new HttpProtocolBuilder instance

  66. def nameInferredHtmlResources(f: Function[Uri, String]): HttpProtocolBuilder

    Name the inferred resources' requests based on the provided function

    Name the inferred resources' requests based on the provided function

    f

    the naming function, aware of the full uri

    returns

    a new HttpProtocolBuilder instance

  67. def nameInferredHtmlResourcesAfterAbsoluteUrl(): HttpProtocolBuilder

    Name the inferred resources' requests based on the absolute url

    Name the inferred resources' requests based on the absolute url

    returns

    a new HttpProtocolBuilder instance

  68. def nameInferredHtmlResourcesAfterLastPathElement(): HttpProtocolBuilder

    Name the inferred resources' requests based on the last element of the path

    Name the inferred resources' requests based on the last element of the path

    returns

    a new HttpProtocolBuilder instance

  69. def nameInferredHtmlResourcesAfterPath(): HttpProtocolBuilder

    Name the inferred resources' requests based on the path

    Name the inferred resources' requests based on the path

    returns

    a new HttpProtocolBuilder instance

  70. def nameInferredHtmlResourcesAfterRelativeUrl(): HttpProtocolBuilder

    Name the inferred resources' requests based on the relative url

    Name the inferred resources' requests based on the relative url

    returns

    a new HttpProtocolBuilder instance

  71. def nameInferredHtmlResourcesAfterUrlTail(): HttpProtocolBuilder

    Name the inferred resources' requests based on the tail of the url

    Name the inferred resources' requests based on the tail of the url

    returns

    a new HttpProtocolBuilder instance

  72. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  73. def noProxyFor(hosts: <repeated...>[String]): HttpProtocolBuilder

    Ignore any configured proxy for some hosts

    Ignore any configured proxy for some hosts

    hosts

    the hosts that must be connected directly without the proxy

    returns

    a new HttpProtocolBuilder instance

  74. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  75. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  76. def originHeader(value: Function[Session, String]): HttpProtocolBuilder

    Set the origin header

    Set the origin header

    value

    the header value, expressed as a function

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  77. def originHeader(value: String): HttpProtocolBuilder

    Set the origin header

    Set the origin header

    value

    the header value, expressed as a Gatling Expression Language String

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  78. def perUserKeyManagerFactory(f: Function[Long, KeyManagerFactory]): HttpProtocolBuilder

    Define a function to assign a KeyManagerFactory per virtual user.

    Define a function to assign a KeyManagerFactory per virtual user.

    f

    the function. Input is the virtual user's unique id

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  79. def perUserNameResolution(): HttpProtocolBuilder

    Force each virtual user to have its own DNS cache and perform its own DNS resolutions instead of using a global shared resolver

    Force each virtual user to have its own DNS cache and perform its own DNS resolutions instead of using a global shared resolver

    returns

    a new HttpProtocolBuilder instance

  80. def protocol(): Protocol
    Definition Classes
    HttpProtocolBuilder → ProtocolBuilder
  81. def proxy(proxy: Proxy): HttpProtocolBuilder

    Define a Proxy to be used for all requests

    Define a Proxy to be used for all requests

    proxy

    the proxy

    returns

    a new HttpProtocolBuilder instance

  82. def proxyProtocolSourceIpV4Address(address: Function[Session, String]): HttpProtocolBuilder

    Enable Proxy Protocol for IPv4

    Enable Proxy Protocol for IPv4

    address

    a fake local address in IPv4 format

    returns

    a new HttpProtocolBuilder instance

  83. def proxyProtocolSourceIpV4Address(address: String): HttpProtocolBuilder

    Enable Proxy Protocol for IPv4

    Enable Proxy Protocol for IPv4

    address

    a fake local address in IPv4 format

    returns

    a new HttpProtocolBuilder instance

  84. def proxyProtocolSourceIpV6Address(address: Function[Session, String]): HttpProtocolBuilder

    Enable Proxy Protocol for IPv6

    Enable Proxy Protocol for IPv6

    address

    a fake local address in IPv6 format

    returns

    a new HttpProtocolBuilder instance

  85. def proxyProtocolSourceIpV6Address(address: String): HttpProtocolBuilder

    Enable Proxy Protocol for IPv6

    Enable Proxy Protocol for IPv6

    address

    a fake local address in IPv6 format

    returns

    a new HttpProtocolBuilder instance

  86. def redirectNamingStrategy(f: RedirectNamingStrategy): HttpProtocolBuilder

    Define a naming strategy for requests generated from a redirect

    Define a naming strategy for requests generated from a redirect

    f

    the strategy

    returns

    a new HttpProtocolBuilder instance

  87. def shareConnections(): HttpProtocolBuilder

    Share a global connection pool and a global javax.net.ssl.SSLContext amongst virtual users instead of each having its own.

    Share a global connection pool and a global javax.net.ssl.SSLContext amongst virtual users instead of each having its own. Makes sense if you don't want to generate mob browser traffic but server to server traffic.

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  88. def sign(calculator: BiFunction[Request, Session, Request]): HttpProtocolBuilder

    Provide a function to sign the requests before writing them on the wire.

    Provide a function to sign the requests before writing them on the wire. This version provides access to the session.

    calculator

    the signing function

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  89. def sign(calculator: Function[Request, Request]): HttpProtocolBuilder

    Provide a function to sign the requests before writing them on the wire

    Provide a function to sign the requests before writing them on the wire

    calculator

    the signing function

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  90. def signWithOAuth1(consumerKey: Function[Session, String], clientSharedSecret: Function[Session, String], token: Function[Session, String], tokenSecret: Function[Session, String], useAuthorizationHeader: Boolean): HttpProtocolBuilder

    Instruct sign the requests with OAuth1 before writing them on the wire

    Instruct sign the requests with OAuth1 before writing them on the wire

    consumerKey

    the consumerKey, expressed as a function

    clientSharedSecret

    the clientSharedSecret, expressed as a function

    token

    the token, expressed as a function

    tokenSecret

    the tokenSecret, expressed as a function

    useAuthorizationHeader

    if true, sign with an Authorization header, otherwise sign forms with extra parameters and other requests with extra query params

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  91. def signWithOAuth1(consumerKey: Function[Session, String], clientSharedSecret: Function[Session, String], token: Function[Session, String], tokenSecret: Function[Session, String]): HttpProtocolBuilder

    Instruct sign the requests with an OAuth1 Authorization before writing them on the wire

    Instruct sign the requests with an OAuth1 Authorization before writing them on the wire

    consumerKey

    the consumerKey, expressed as a function

    clientSharedSecret

    the clientSharedSecret, expressed as a function

    token

    the token, expressed as a function

    tokenSecret

    the tokenSecret, expressed as a function

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  92. def signWithOAuth1(consumerKey: String, clientSharedSecret: String, token: String, tokenSecret: String, useAuthorizationHeader: Boolean): HttpProtocolBuilder

    Instruct sign the requests with OAuth1 before writing them on the wire

    Instruct sign the requests with OAuth1 before writing them on the wire

    consumerKey

    the consumerKey, expressed as a Gatling Expression Language String

    clientSharedSecret

    the clientSharedSecret, expressed as a Gatling Expression Language String

    token

    the token, expressed as a Gatling Expression Language String

    tokenSecret

    the tokenSecret, expressed as a Gatling Expression Language String

    useAuthorizationHeader

    if true, sign with an Authorization header, otherwise sign forms with extra parameters and other requests with extra query params

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  93. def signWithOAuth1(consumerKey: String, clientSharedSecret: String, token: String, tokenSecret: String): HttpProtocolBuilder

    Instruct sign the requests with an OAuth1 Authorization header before writing them on the wire

    Instruct sign the requests with an OAuth1 Authorization header before writing them on the wire

    consumerKey

    the consumerKey, expressed as a Gatling Expression Language String

    clientSharedSecret

    the clientSharedSecret, expressed as a Gatling Expression Language String

    token

    the token, expressed as a Gatling Expression Language String

    tokenSecret

    the tokenSecret, expressed as a Gatling Expression Language String

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  94. def silentResources(): HttpProtocolBuilder

    Instruct the reporting engine to not report resources

    Instruct the reporting engine to not report resources

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  95. def silentUri(pattern: String): HttpProtocolBuilder

    Instruct the reporting engine to not report requests whose uri matches the configured <a href="https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html">Java Regular Expression pattern

    Instruct the reporting engine to not report requests whose uri matches the configured <a href="https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html">Java Regular Expression pattern

    pattern

    the regex pattern

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  96. def sseUnmatchedInboundMessageBufferSize(max: Int): HttpProtocolBuilder

    Set the max size of the buffer for unmatched/unchecked inbound SSE messages.

    Set the max size of the buffer for unmatched/unchecked inbound SSE messages. 0 by default, meaning such messages are not buffered.

    max

    the max size

    returns

    a new HttpProtocolBuilder instance

  97. def strict302Handling(): HttpProtocolBuilder

    Apply 302 strictly and not switch to GET and re-send the request body

    Apply 302 strictly and not switch to GET and re-send the request body

    returns

    a new HttpProtocolBuilder instance

  98. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  99. def toString(): String
    Definition Classes
    AnyRef → Any
  100. def transformResponse(f: BiFunction[Response, Session, Response]): HttpProtocolBuilder

    Define a transformation function to be applied on the Responses before checks are applied.

    Define a transformation function to be applied on the Responses before checks are applied. Typically used for decoding responses, eg with <a href="https://developers.google.com/protocol-buffers">Protobuf.

    f

    the strategy

    returns

    a new HttpProtocolBuilder instance

  101. def upgradeInsecureRequestsHeader(value: Function[Session, String]): HttpProtocolBuilder

    Set the upgrade-insecure-requests header

    Set the upgrade-insecure-requests header

    value

    the header value, expressed as a function

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  102. def upgradeInsecureRequestsHeader(value: String): HttpProtocolBuilder

    Set the upgrade-insecure-requests header

    Set the upgrade-insecure-requests header

    value

    the header value, expressed as a Gatling Expression Language String

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  103. def useAllLocalAddresses(): HttpProtocolBuilder

    Bind from all detected local addresses.

    Bind from all detected local addresses. Assigned once per virtual user based on a round-robin strategy.

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  104. def useAllLocalAddressesMatching(patterns: <repeated...>[String]): HttpProtocolBuilder

    Bind from all detected local addresses matching at least one of the configured patterns.

    Bind from all detected local addresses matching at least one of the configured patterns. Assigned once per virtual user based on a round-robin strategy.

    patterns

    some <a href="https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html">Java Regular Expression patterns

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  105. def userAgentHeader(value: Function[Session, String]): HttpProtocolBuilder

    Set the user-agent header

    Set the user-agent header

    value

    the header value, expressed as a function

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  106. def userAgentHeader(value: String): HttpProtocolBuilder

    Set the user-agent header

    Set the user-agent header

    value

    the header value, expressed as a Gatling Expression Language String

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  107. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  108. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  109. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  110. def warmUp(url: String): HttpProtocolBuilder

    Define the warmup url.

    Define the warmup url. Used to perform a blank HTTP request to load the classes in the ClassLoader so the first load test request won't have to pay for this penalty. Hit "https://gatling.io" by default.

    url

    the warmup url

    returns

    a new HttpProtocolBuilder instance

    Annotations
    @NonNull()
  111. def wsAutoReplySocketIo4(): HttpProtocolBuilder

    Automatically reply to a SocketIo4 ping TEXT frame with the corresponding pong TEXT frame.

    Automatically reply to a SocketIo4 ping TEXT frame with the corresponding pong TEXT frame.

    returns

    a new HttpProtocolBuilder instance

  112. def wsAutoReplyTextFrame(f: Function[String, String]): HttpProtocolBuilder

    Automatically reply to a TEXT frame with another TEXT frame.

    Automatically reply to a TEXT frame with another TEXT frame.

    f

    the function

    returns

    a new HttpProtocolBuilder instance

  113. def wsBaseUrl(url: String): HttpProtocolBuilder

    Define a baseUrl that will be used as a prefix for all relative WebSocket urls.

    Define a baseUrl that will be used as a prefix for all relative WebSocket urls.

    url

    the base url

    returns

    a new HttpProtocolBuilder instance

  114. def wsBaseUrls(urls: List[String]): HttpProtocolBuilder

    Define multiple baseUrls that will be used as a prefix for all relative WebSocket urls.

    Define multiple baseUrls that will be used as a prefix for all relative WebSocket urls. Assigned once per virtual user based on a round-robin strategy.

    urls

    the base urls

    returns

    a new HttpProtocolBuilder instance

  115. def wsBaseUrls(urls: <repeated...>[String]): HttpProtocolBuilder

    Define multiple baseUrls that will be used as a prefix for all relative WebSocket urls.

    Define multiple baseUrls that will be used as a prefix for all relative WebSocket urls. Assigned once per virtual user based on a round-robin strategy.

    urls

    the base urls

    returns

    a new HttpProtocolBuilder instance

  116. def wsMaxReconnects(max: Int): HttpProtocolBuilder

    Define a maximum number of times a WebSocket can be automatically reconnected

    Define a maximum number of times a WebSocket can be automatically reconnected

    max

    the limit

    returns

    a new HttpProtocolBuilder instance

  117. def wsReconnect(): HttpProtocolBuilder

    Automatically reconnect disconnected WebSockets

    Automatically reconnect disconnected WebSockets

    returns

    a new HttpProtocolBuilder instance

  118. def wsUnmatchedInboundMessageBufferSize(max: Int): HttpProtocolBuilder

    Set the max size of the buffer for unmatched/unchecked inbound WebSocket messages.

    Set the max size of the buffer for unmatched/unchecked inbound WebSocket messages. 0 by default, meaning such messages are not buffered.

    max

    the max size

    returns

    a new HttpProtocolBuilder instance

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from ProtocolBuilder

Inherited from AnyRef

Inherited from Any

Ungrouped