options( url, [body], [params] )
Returns
Example
import http from 'k6/http';
const url = 'https://quickpizza.grafana.com/';
export default function () {
const params = { headers: { 'X-MyHeader': 'k6test' } };
const res = http.options(url, null, params);
console.log(res.headers['Allow']);
}