headers()
The isolated module for executing header verifications directly.
ts
ab.headers("Headers exist").toExist();
ab.headers("Is Empty").toBeEmpty();
ab.headers("Header 'content-type' exists").toHaveProperty("content-type");
ab.headers("Header missing").not.toHaveProperty("x-custom-header");
ab.headers("Value check").toHaveHeaderValue("server", "nginx");
ab.headers("JSON check").toHaveContentType("application/json");