Reads the Content-Type of a response, trying the lowercase content-type header key first and the canonical Content-Type spelling second.
Content-Type
content-type
The value stamps AniLinkApiError.contentType so consumers can tell a structured JSON failure payload from an HTML or plain-text one without guessing.
The response headers, when available.
The raw Content-Type value, or undefined when absent or not a string.
undefined
Reads the
Content-Typeof a response, trying the lowercasecontent-typeheader key first and the canonicalContent-Typespelling second.The value stamps AniLinkApiError.contentType so consumers can tell a structured JSON failure payload from an HTML or plain-text one without guessing.