wailuku library

A minimalist Dart backend framework inspired by Express.js.

This library provides a simple and intuitive way to create HTTP servers and handle routing in Dart applications. It follows a similar pattern to Express.js while maintaining Dart's idiomatic style.

Example:

import 'package:wailuku/wailuku.dart';

void main() {
  final app = Server();
  app.get('/', (req, res) => res.send('Hello World!'));
  app.listen(3000);
}

Classes

Request
A class that wraps an HTTP request and provides convenient access to its data.
Response
A class that provides a convenient interface for sending HTTP responses.
ResponseUtils
A utility class that provides common response handling methods.
RoutePattern
Class to hold the result of route pattern parsing
Router
A class that handles routing of HTTP requests to their corresponding handlers.
WailukuServer
A server class that provides a simple interface for creating HTTP servers.