Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/momentum/core/mod.ts

Momentum is an open-source framework for building server-side Deno applications in TypeScript. It provides the paradigms and design patterns to guide developers to create robust, scalable, and enterprise-grade applications.
Latest
import * as momentum from "https://deno.land/x/momentum@v0.8.2/core/mod.ts";

Classes

c
ActionResult
abstract

Base class that represents the result of a controller action

Represents a result of a controller with content

Wraps the platform specific context object with a standard interface

Represents a reference to an bootstrapped Momentum module

c
Platform
abstract

The Momentum platform is the entry point for every Momentum application. Each application has exactly one platform and services are bound the scope of the platform.

Represents a controller action result with a redirect

Represents an server-side error that can be relayed back to the client. :th

Momentum platform for server applications such as APIs and web applications.

Represents a result of a controller action with a status code

Functions

Decorator that extracts an action argument as the full body of a request

Create a @see ContentResult

Decorator that marks a class as a controller

Decorator that extracts an action argument from a cookie on the request

Creates a parameter decorator

Decorator that gets the underlying platform context object as a action argument

Decorator that marks a controller method as a DELETE action

Decorator that applies a filter to a controller or action

Decorator that marks a controller method as a GET action

Decorator that marks a controller method as a HEAD action

Decorator that extracts an action argument from a header on the request

Decorator used to inject a logger

Decorator that marks a class as an MvModule and supplies configuration metadata.

Decorator that extracts an action argument from a route parameter

Decorator that marks a controller method as a PATCH action

Creates a new basic momentum platform

Decorator that marks a controller method as a POST action

Decorator that marks a controller method as a PUT action

Decorator that extracts an action argument from a query parameter of the request

Create a @see RedirectResult

Decorator that gets the underlying platform request object as a action argument

Decorator that gets the underlying platform response object as a action argument

Create a @see StatusCodeResult

Decorator that applies a transformer at a controller, action, or parameter level

Interfaces

Interface that describes a filter.

Interface that describes a middleware.

Interface that describes a transformer

A lifecycle hook that is called after the platform is bootstrapped

A lifecycle hook that is called before the platform shuts down

A lifecycle hook that is called after a request is processed

A lifecycle hook that is called before a request is processed