This is documentation for the next version of K6. For the latest stable release, go to the latest version.
cookieJar()
Get the active cookie jar.
Type | Description |
---|---|
CookieJar | A CookieJar object. |
Example
import http from 'k6/http';
export default function () {
const jar = http.cookieJar();
}