Type alias HttpPathValidator

HttpPathValidator: ((request) => boolean | PromiseLike<boolean>)

Type declaration

    • (request): boolean | PromiseLike<boolean>
    • Validates a request path.

      Parameters

      • request: IncomingMessage

        The request context.

      Returns boolean | PromiseLike<boolean>

      A value, which indicates, that path does match or not.

Generated using TypeDoc