Move Controller to core

This commit is contained in:
Tobe O 2018-10-22 11:56:03 -04:00
parent 0ad9560095
commit 8ef86f61a3
5 changed files with 4 additions and 6 deletions

View file

@ -1,4 +1,5 @@
export 'anonymous_service.dart'; export 'anonymous_service.dart';
export 'controller.dart';
export 'hooked_service.dart'; export 'hooked_service.dart';
export 'map_service.dart'; export 'map_service.dart';
export 'metadata.dart'; export 'metadata.dart';

View file

@ -10,7 +10,7 @@ import 'package:file/file.dart';
import 'package:http_parser/http_parser.dart'; import 'package:http_parser/http_parser.dart';
import 'package:mime/mime.dart'; import 'package:mime/mime.dart';
import '../http/http.dart'; import 'controller.dart';
import 'request_context.dart'; import 'request_context.dart';
import 'server.dart' show Angel; import 'server.dart' show Angel;

View file

@ -13,7 +13,7 @@ import 'package:http_parser/http_parser.dart';
import 'package:logging/logging.dart'; import 'package:logging/logging.dart';
import 'package:tuple/tuple.dart'; import 'package:tuple/tuple.dart';
import '../http/http.dart'; import 'controller.dart';
import 'hooked_service.dart'; import 'hooked_service.dart';
import 'request_context.dart'; import 'request_context.dart';
import 'response_context.dart'; import 'response_context.dart';
@ -40,7 +40,6 @@ class Angel extends Routable {
handlerCache = new HashMap(); handlerCache = new HashMap();
Router _flattened; Router _flattened;
AngelHttp _http;
bool _isProduction; bool _isProduction;
Angel _parent; Angel _parent;
@ -212,8 +211,7 @@ class Angel extends Routable {
shutdownHooks.clear(); shutdownHooks.clear();
responseFinalizers.clear(); responseFinalizers.clear();
_flattened = null; _flattened = null;
_http?.close(); return new Future.value();
return new Future.value(_http?.httpServer);
} }
@override @override

View file

@ -4,7 +4,6 @@ library angel_framework.http;
import 'dart:async'; import 'dart:async';
import 'dart:io'; import 'dart:io';
export 'angel_http.dart'; export 'angel_http.dart';
export 'controller.dart';
export 'http_request_context.dart'; export 'http_request_context.dart';
export 'http_response_context.dart'; export 'http_response_context.dart';