@creator.co/wapi - v1.8.1
    Preparing search index...

    Represents a server container that extends the Server class and handles serverless events.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    config: RouterConfig

    The configuration object for the router.

    proxy: default

    The proxy object used for handling requests and responses.

    routeResolver: default

    A protected property that holds a RouteResolver object. The RouteResolver is responsible for resolving routes and returning the appropriate response.

    Methods

    • Handles a serverless event by executing a transaction and resolving the route based on the event.

      Parameters

      • event: APIGatewayProxyEvent

        The serverless event object.

      • context: Context

        The serverless context object.

      Returns Promise<void>

      None

    • Starts the application by loading the proxy.

      Returns Promise<void>

      • A promise that resolves when the proxy is loaded.
    • Stops the execution of the program and unloads the proxy.

      Parameters

      • Optionalerr: any

        Optional error object to pass to the unload method.

      Returns Promise<void>

      • A promise that resolves once the proxy is unloaded.