Skip to main content

winter 1.0.0-rc.5 copy "winter: ^1.0.0-rc.5" to clipboard
winter: ^1.0.0-rc.5 copied to clipboard

A Spring-inspired backend framework for Dart on dart:io - routing, filters, DI, JSON mapping, validation, security and consistent errors.

example/main.dart

import 'package:winter/winter.dart';

void main() async {
  await Winter.start(
    config: const ServerConfig(port: 8080),
    router: WinterRouter(
      config: RouterConfig(onLoadedRoutes: DefaultOnLoadedRoutes.log()),
      routes: [
        Route.get(
          path: '/hello',
          handler: (request) {
            return ResponseEntity.ok(body: 'Hello World');
          },
        ),
      ],
    ),
  );
}
2
likes
160
points
239
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

A Spring-inspired backend framework for Dart on dart:io - routing, filters, DI, JSON mapping, validation, security and consistent errors.

Repository (GitHub)
View/report issues
Contributing

Topics

#server #http #backend #rest #api

License

Apache-2.0 (license)

Dependencies

collection, http_parser, intl, slang

More

Packages that depend on winter