ifMatchHeader
Format a resource revision for the If-Match request header. When calling an SDK method, you can also pass the revision directly in options.ifMatch.
Signature
ifMatchHeader(value: string | number): stringParameters
value- A nonnegative integer, a string of digits, or a double-quoted string of digits such as "3".
Return value
A double-quoted revision string. Passing 3 returns the three characters "3".
Errors
- Error for other input, including a weak ETag, an unquoted word or a negative number.
TypeScript example
import { ifMatchHeader } from "@aeoapi/aeo-sdk";
const revision = 3;
console.log(ifMatchHeader(revision)); // '"3"'See TypeScript client setup for authentication, timeouts and retry settings.