File tree Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ import 'dart:convert';
77import 'dart:ffi' ;
88import 'dart:isolate' ;
99import 'dart:io' ;
10- import 'dart:typed_data' ;
1110
1211import 'package:ffi/ffi.dart' ;
1312
@@ -72,18 +71,18 @@ ReceivePort httpServe(void Function(String) onRequest) {
7271 rp.sendPort.send (s);
7372 });
7473 rp.listen (
75- (s) {
76- print ('httpServe counter: $counter ' );
77- onRequest (s);
78- },
79- onError: (e, st) {
80- print ('httpServe receiver get error $e $st ' );
81- },
82- onDone: () {
83- nativeHttpStopServing ();
84- callback.close ();
85- },
86- );
74+ (s) {
75+ print ('httpServe counter: $counter ' );
76+ onRequest (s);
77+ },
78+ onError: (e, st) {
79+ print ('httpServe receiver get error $e $st ' );
80+ },
81+ onDone: () {
82+ nativeHttpStopServing ();
83+ callback.close ();
84+ },
85+ );
8786
8887 // Invoke the native function to start the HTTP server. Our example
8988 // HTTP library will start a server on a background thread, and pass
You can’t perform that action at this time.
0 commit comments