@novice1/frame - v0.4.2
    Preparing search index...

    Class Frame

    Main Frame class

    Hierarchy

    • FrameworkApp
      • Frame
    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    docs: { openapi: OpenAPI; postman: Postman }

    Documentation instances

    Accessors

    • get openapi(): OpenAPI

      Get the OpenAPI documentation instance

      Returns OpenAPI

    • get postman(): Postman

      Get the Postman documentation instance

      Returns Postman

    Methods

    • Build the HTTP server and refresh the docs before returning it

      Type Parameters

      • T extends ServerOptions<typeof IncomingMessage, typeof ServerResponse> = ServerOptions<typeof IncomingMessage, typeof ServerResponse>

      Parameters

      • Optionaloptions: T | null
      • Optionalmod: {
            createServer(
                requestListener?: RequestListener<
                    typeof IncomingMessage,
                    typeof ServerResponse,
                >,
            ): Server;
            createServer(
                options: T,
                requestListener?: RequestListener<
                    typeof IncomingMessage,
                    typeof ServerResponse,
                >,
            ): Server;
        }

      Returns Server

    • Remove all routes related to docs and re-add them

      Returns void