routed_core 0.5.2 copy "routed_core: ^0.5.2" to clipboard
routed_core: ^0.5.2 copied to clipboard

Slim HTTP engine core for the Routed ecosystem (Engine, Context, Router). Feature packages live under routed_* / server_*.

routed_core #

Slim HTTP engine for the Routed ecosystem (Engine, EngineContext, Router).

Provider setup #

routed_core owns only the core and routing providers. Initialize them explicitly when building a slim application:

import 'package:routed_core/routed_core.dart';

Future<void> main() async {
  final engine = await Engine.create(
    providers: Engine.defaultProviders,
  )..get('/health', (ctx) => ctx.json({'ok': true}));

  await engine.serve(port: 8080);
}

Feature adapters such as routed_sessions or routed_views are added to the provider list alongside Engine.defaultProviders. Applications that want the official feature bundle should depend on package:routed, call registerRoutedProviders(), and then use Engine.create(). Adapter packages depend on routed_core directly.

0
likes
140
points
511
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Slim HTTP engine core for the Routed ecosystem (Engine, Context, Router). Feature packages live under routed_* / server_*.

Repository (GitHub)
View/report issues

Funding

Consider supporting this project:

www.buymeacoffee.com

License

MIT (license)

Dependencies

collection, contextual, event_bus, file, fuzzywuzzy, http, http2, http_parser, liquify, meta, path, server_contracts, stack_trace, stream_transform

More

Packages that depend on routed_core