node-webserver
    Preparing search index...

    Class Router<Locals>

    Type Parameters

    • Locals extends App.Locals = App.Locals

    Hierarchy (View Summary)

    Index

    Constructors

    Accessors

    • get nestedRouters(): readonly NestedRouter[]

      Returns readonly NestedRouter[]

    Methods

    • Check if the router can handle a WebSocket connection for the given path This is used during the upgrade process to validate routes before attempting connection

      Parameters

      Returns Promise<boolean>

    • Parameters

      • path_or_prefix: string
      • Optionalmethod: "GET" | "PUT" | "POST" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS"

      Returns this

    post

    POST