I’ve just started using K6 and a question about making requests.
My API endpoints have our own authentication as set in headers. We have an internal npm package to make these authenticated requests, but I wanted to ask is it actually possible for me to use this to make the requests - and get all the goodies, like validation and metrics as I would otherwise.
So basically instead of:
import http from "k6/http"; let response = http.get(url);
Use my own:
import myHttpRequest from "myLibrary"; let response = myHttpRequest.get(url);