文件名称:Storm-dart:dart服务器库
文件大小:6KB
文件格式:ZIP
更新时间:2024-04-20 20:29:12
Dart
适用于现代Web服务器的Dart库 import 'package:dartlearn/storm.dart' ; Future main () async { StormApp _app = StormApp (port : 4040 ); _app. use ( Route ( path : "/" , method : RequestMethod . ANY , handler : ( Request request, Response response) { response. send ( "
hello
" ); })); _app. use ( Route ( path : "/index" , method : RequestMethod . ANY ,【文件预览】:
Storm-dart-master
----pubspec.yaml(238B)
----lib()
--------route.dart(502B)
--------response.dart(281B)
--------storm.dart(1KB)
--------request.dart(121B)
--------request_method.dart(70B)
----pubspec.lock(7KB)
----test()
--------storm_test.dart(85B)
----README.md(528B)
----analysis_options.yaml(434B)
----.gitignore(153B)
----bin()
--------storm.dart(480B)
----CHANGELOG.md(50B)