Skip to main content

Melon.http.app(options?)

Creates a HttpApplication object, used to configure a web api that can be directly based on REST principles.

Status: stable
Returns: HttpApplication

Types

interface HttpApplicationOptions {
name: string;
host: string;
port: number;
enableHttps: boolean;
}

Parameters

NameTypeDescription
optionsHttpApplicationOptions?Options to configure the application

Example usage

const { http } = Melon;
const app = http.app();