Storage for an event's headers.

Some specialized headers are automatically captured.

Constructors

Properties

contentLength: undefined | number

Content-Length header, parsed

contentType: undefined | string

Content-Type header

control: undefined | string

Control header

eventName: undefined | string

Event-Name header

replyText: undefined | string

Reply-Text header

socketMode: undefined | string

Socket-Mode header

Methods

  • Return the value of the header, if present

    Parameters

    • name: string

    Returns undefined | string

  • Return true if the header is present

    Parameters

    • name: string

    Returns boolean

  • Record a single header and parse it

    Parameters

    • name: string
    • value: string

    Returns void