http
This module provides a basic HTTP server for building web applications.
| Name | Summary |
|---|---|
| handle | Registers a handler function for a given URI path. |
| listen | Starts the HTTP server on the specified address. |
fn handle(path, handler) -> null
Registers a handler function for a given URI path.
Parameters
| path | The URL path to handle (e.g. '/') |
| handler | Function(request, response) to call. |
null