Skip to content

Instantly share code, notes, and snippets.

@aartajew
Created April 20, 2023 10:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aartajew/89a92f9fd957fa389209376084a5e9cc to your computer and use it in GitHub Desktop.
Save aartajew/89a92f9fd957fa389209376084a5e9cc to your computer and use it in GitHub Desktop.
Gatling > Remove header using signature calculator
package util
import io.gatling.commons.validation._
import io.gatling.core.Predef._
import io.gatling.http.client._
object SignatureCalculatorRemoveHeader {
def apply(header: String): (Request, Session) => Validation[_] = (request, _) => {
request.getHeaders.remove(header)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment