api-boltAPIBolt

Headers Assertions (Expect API)

Ensure proper metadata and security policies via HTTP Header validation.

Available Matchers

toHaveHeader(key)

Asserts that a specific case-insensitive header payload is present.

ts

toHaveHeaderValue(key, expectedOrRegex)

Asserts the header matches an exact string or passes a Regular Expression test.

ts

toHaveContentType(typeSubstring)

Shorthand to ensure the Content-Type header natively includes the provided signature.

ts