FaasJS
Home
  • Guide
  • Documents
  • Templates
  • Changelog
  • Ecosystem

    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security
Home
  • Guide
  • Documents
  • Templates
  • Changelog
  • Ecosystem

    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security

Documents / @faasjs/core

@faasjs/core

@faasjs/core

FaasJS core package.

License: MIT NPM Version

Install

npm install @faasjs/core

The package exports function lifecycle primitives, HTTP API helpers, middleware, and the local HTTP server. The package default export is the built-in Http plugin.

Functions

  • closeAll
  • defineApi
  • getAll
  • nameFunc
  • parseApiFilenameFromStack
  • staticHandler
  • useMiddleware
  • useMiddlewares

Classes

  • Cookie
  • Func
  • Http
  • HttpError
  • Server
  • Session

References

default

Renames and re-exports Http

Type Aliases

  • Config
  • CookieOptions
  • DefineApiData
  • ExportedHandler
  • FuncConfig
  • FuncEventType
  • FuncReturnType
  • FuncRuntime
  • Handler
  • HttpConfig
  • HttpResponseBody
  • HttpSetBody
  • HttpSetContentType
  • HttpSetHeader
  • HttpSetStatusCode
  • InvokeData
  • LifecycleKey
  • Middleware
  • MiddlewareContext
  • MiddlewareEvent
  • MountData
  • Next
  • Plugin
  • Response
  • RuntimeContext
  • ServerHandlerOptions
  • ServerOptions
  • SessionContent
  • SessionOptions
  • StaticHandlerOptions

Variables

  • ContentType