Menu

This is documentation for the next version of K6. For the latest stable release, go to the latest version.

Open source

cookieJar()

Get the active cookie jar.

TypeDescription
CookieJarA CookieJar object.

Example

JavaScript
import http from 'k6/http';

export default function () {
  const jar = http.cookieJar();
}