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
Name | Type | Description |
---|---|---|
options | HttpApplicationOptions? | Options to configure the application |
Example usage
const { http } = Melon;
const app = http.app();