Skip to main content
Module

x/sustain_core/index.ts>SustainServer

A Framework that barely uses dependencies and it is designed especially to make stable and sustainable applications. 📦
Latest
class SustainServer
Re-export
import { SustainServer } from "https://deno.land/x/sustain_core@0.20.5/index.ts";

Constructors

new
SustainServer(requests: SustainRequest, config: Application)

Properties

config: Application
extensions: SustainExtension[]
loadedExtensions: SustainExtension[]
middleswares: Middleware[]
port: number
requests: SustainRequest
server: Server
staticFolders: StaticFolder[]

Methods

executeInterceptor(
route: Route,
request: any,
response: ServerResponse,
)
handleControllerOutput(controllerOutput:
| Promise<any>
| string
| number
| object
, response: ServerResponse
)
nextifyMiddleware(
middleware: any,
request: any,
responce: ServerResponse,
)