ai.internal._header

(internal) One header by name, tolerating the two casings a response map can carry: the HTTP layer lowercases response header names, but a hand-built map (a mock, a re-wrapped error) may keep the wire's canonical casing.

Reference version

Signature

function ai.internal._header(
headers: map<string, string>,
lower: string,
canonical: string
) -> string | null

(internal) One header by name, tolerating the two casings a response map can carry: the HTTP layer lowercases response header names, but a hand-built map (a mock, a re-wrapped error) may keep the wire's canonical casing.

Source:<builtin>/ai/ns_internal/http_errors.bamlbytes 354498