Skip to content
qubeejs/angular
3.8/API/readHeader

readHeader

ArchivedThese are the docs for ng-qubee 3.8. Read the 4.0 docs for @qubeejs/angular.

readHeader(bag, name): string | null

Defined in: src/lib/interfaces/header-bag.interface.ts:21

Read a header value by name from a HeaderBag, regardless of whether the bag exposes a .get() accessor or plain property access.

HeaderBag | null | undefined

The header bag to read from

string

The header name (case-sensitivity follows the underlying bag)

string | null

The header value, or null if absent or the bag itself is falsy