Module wade_app

OTP Application for Wade HTTP server.

Behaviours: application.

Description

OTP Application for Wade HTTP server. This module implements the OTP application behaviour for Wade, providing lifecycle management and convenient start/stop functions.

Function Index

start/0Start Wade with default port 8080.
start/1Start Wade on a specific port.
stop/0Stop the Wade server.

Function Details

start/0

start() -> any()

Equivalent to start(8080).

Start Wade with default port 8080. Ensures all dependencies are started and then starts the Wade supervisor.

start/1

start(Port) -> any()

Start Wade on a specific port. Ensures all dependencies are started before starting the Wade supervisor. If Wade is already running, returns {error, already_started}.

stop/0

stop() -> any()

Stop the Wade server. Terminates the Wade worker child under the supervisor. If Wade is not running, returns {error, not_running}.


Generated by EDoc