Documentation
    Preparing search index...

    Class HttpHelper

    Static utility helpers for processing standard HTTP request parameters and headers.

    Index

    Constructors

    Methods

    • Extracts username and password credentials from a Basic Authorization header.

      Parameters

      • authorization: string | undefined

        The raw Authorization header string (e.g. 'Basic ').

      Returns { pass: string; user: string } | null

      An object containing the user and pass properties, or null if parsing fails.

    • Extracts a bearer token from an Authorization header.

      Parameters

      • authorization: string | undefined

        The raw Authorization header string (e.g. 'Bearer ').

      Returns string

      The extracted token string, or an empty string if invalid or missing.