storm 1.0.1 copy "storm: ^1.0.1" to clipboard
storm: ^1.0.1 copied to clipboard

outdated

A sample command-line application.

Dart library for modern web server #

* This project is still under development. *

Storm Logo

Installing

Todo #

  • Route handling
  • Dynamic routes
  • Query parameters
  • Post body parse (multipart/form-data, url-encoded )
  • Plugins

Example code #

import 'package:storm/storm.dart';

void main(List<String> arguments) {
  Storm app = Storm(port: 4040);

  app.plugin(new Cors());

  app.use(Route(
      path: '/',
      method: RequestMethod.ANY,
      handler: (Request request, Response response) {
        response.send({'a': 10});
      }));

  app.use(Route(
      path: '/about',
      method: RequestMethod.ANY,
      handler: (Request request, Response response) {
        response.sendHTML('<h1>About working</h1>');
      }));

  app.start();
}

9
likes
0
pub points
0%
popularity

Publisher

verified publishershanbhag.dev

A sample command-line application.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

meta, path

More

Packages that depend on storm