Deprecated createZoneForRequest
This commit is contained in:
parent
101aedc0c3
commit
9e21634764
2 changed files with 20 additions and 18 deletions
|
@ -31,8 +31,8 @@
|
||||||
<file leaf-file-name="server.dart" pinned="false" current-in-tab="true">
|
<file leaf-file-name="server.dart" pinned="false" current-in-tab="true">
|
||||||
<entry file="file://$PROJECT_DIR$/lib/src/http/server.dart">
|
<entry file="file://$PROJECT_DIR$/lib/src/http/server.dart">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="202">
|
<state relative-caret-position="168">
|
||||||
<caret line="303" column="19" lean-forward="true" selection-start-line="303" selection-start-column="19" selection-end-line="303" selection-end-column="19" />
|
<caret line="44" column="29" lean-forward="true" selection-start-line="44" selection-start-column="29" selection-end-line="44" selection-end-column="29" />
|
||||||
<folding>
|
<folding>
|
||||||
<element signature="e#38#58#0" expanded="true" />
|
<element signature="e#38#58#0" expanded="true" />
|
||||||
</folding>
|
</folding>
|
||||||
|
@ -81,7 +81,6 @@
|
||||||
</component>
|
</component>
|
||||||
<component name="FindInProjectRecents">
|
<component name="FindInProjectRecents">
|
||||||
<findStrings>
|
<findStrings>
|
||||||
<find>requestedUrl</find>
|
|
||||||
<find>cacheK</find>
|
<find>cacheK</find>
|
||||||
<find>resolveAl</find>
|
<find>resolveAl</find>
|
||||||
<find>path</find>
|
<find>path</find>
|
||||||
|
@ -111,6 +110,7 @@
|
||||||
<find>shutdown</find>
|
<find>shutdown</find>
|
||||||
<find>HttpHeaders</find>
|
<find>HttpHeaders</find>
|
||||||
<find>ContentType</find>
|
<find>ContentType</find>
|
||||||
|
<find>createZ</find>
|
||||||
</findStrings>
|
</findStrings>
|
||||||
<replaceStrings>
|
<replaceStrings>
|
||||||
<replace>_isClosed</replace>
|
<replace>_isClosed</replace>
|
||||||
|
@ -617,14 +617,7 @@
|
||||||
<workItem from="1513103483207" duration="18000" />
|
<workItem from="1513103483207" duration="18000" />
|
||||||
<workItem from="1513103506825" duration="139000" />
|
<workItem from="1513103506825" duration="139000" />
|
||||||
<workItem from="1517332581856" duration="858000" />
|
<workItem from="1517332581856" duration="858000" />
|
||||||
<workItem from="1517973177718" duration="3510000" />
|
<workItem from="1517973177718" duration="3606000" />
|
||||||
</task>
|
|
||||||
<task id="LOCAL-00008" summary="1.0.2">
|
|
||||||
<created>1493087536575</created>
|
|
||||||
<option name="number" value="00008" />
|
|
||||||
<option name="presentableId" value="LOCAL-00008" />
|
|
||||||
<option name="project" value="LOCAL" />
|
|
||||||
<updated>1493087536575</updated>
|
|
||||||
</task>
|
</task>
|
||||||
<task id="LOCAL-00009" summary="+1">
|
<task id="LOCAL-00009" summary="+1">
|
||||||
<created>1493088262571</created>
|
<created>1493088262571</created>
|
||||||
|
@ -962,7 +955,14 @@
|
||||||
<option name="project" value="LOCAL" />
|
<option name="project" value="LOCAL" />
|
||||||
<updated>1517976649593</updated>
|
<updated>1517976649593</updated>
|
||||||
</task>
|
</task>
|
||||||
<option name="localTasksCounter" value="57" />
|
<task id="LOCAL-00057" summary="Removed use of `HttpHeaders` in `Angel`">
|
||||||
|
<created>1517976712783</created>
|
||||||
|
<option name="number" value="00057" />
|
||||||
|
<option name="presentableId" value="LOCAL-00057" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1517976712783</updated>
|
||||||
|
</task>
|
||||||
|
<option name="localTasksCounter" value="58" />
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
<component name="TestHistory">
|
<component name="TestHistory">
|
||||||
|
@ -998,7 +998,7 @@
|
||||||
</history-entry>
|
</history-entry>
|
||||||
</component>
|
</component>
|
||||||
<component name="TimeTrackingManager">
|
<component name="TimeTrackingManager">
|
||||||
<option name="totallyTimeSpent" value="121546000" />
|
<option name="totallyTimeSpent" value="121642000" />
|
||||||
</component>
|
</component>
|
||||||
<component name="TodoView">
|
<component name="TodoView">
|
||||||
<todo-panel id="selected-file">
|
<todo-panel id="selected-file">
|
||||||
|
@ -1057,7 +1057,6 @@
|
||||||
</component>
|
</component>
|
||||||
<component name="VcsManagerConfiguration">
|
<component name="VcsManagerConfiguration">
|
||||||
<option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="false" />
|
<option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="false" />
|
||||||
<MESSAGE value="1.1.0-alpha" />
|
|
||||||
<MESSAGE value="pubspec" />
|
<MESSAGE value="pubspec" />
|
||||||
<MESSAGE value="Logging support" />
|
<MESSAGE value="Logging support" />
|
||||||
<MESSAGE value="Updated `use`" />
|
<MESSAGE value="Updated `use`" />
|
||||||
|
@ -1082,7 +1081,8 @@
|
||||||
<MESSAGE value="Angel._flattened is now accessible via `optimizedRouter`" />
|
<MESSAGE value="Angel._flattened is now accessible via `optimizedRouter`" />
|
||||||
<MESSAGE value="Used function syntax, deprecated `ResponseSerializer` typedef" />
|
<MESSAGE value="Used function syntax, deprecated `ResponseSerializer` typedef" />
|
||||||
<MESSAGE value="Deprecated all serving logic in `Angel`" />
|
<MESSAGE value="Deprecated all serving logic in `Angel`" />
|
||||||
<option name="LAST_COMMIT_MESSAGE" value="Deprecated all serving logic in `Angel`" />
|
<MESSAGE value="Removed use of `HttpHeaders` in `Angel`" />
|
||||||
|
<option name="LAST_COMMIT_MESSAGE" value="Removed use of `HttpHeaders` in `Angel`" />
|
||||||
</component>
|
</component>
|
||||||
<component name="XDebuggerManager">
|
<component name="XDebuggerManager">
|
||||||
<breakpoint-manager>
|
<breakpoint-manager>
|
||||||
|
@ -1470,8 +1470,8 @@
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/lib/src/http/server.dart">
|
<entry file="file://$PROJECT_DIR$/lib/src/http/server.dart">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="202">
|
<state relative-caret-position="168">
|
||||||
<caret line="303" column="19" lean-forward="true" selection-start-line="303" selection-start-column="19" selection-end-line="303" selection-end-column="19" />
|
<caret line="44" column="29" lean-forward="true" selection-start-line="44" selection-start-column="29" selection-end-line="44" selection-end-column="29" />
|
||||||
<folding>
|
<folding>
|
||||||
<element signature="e#38#58#0" expanded="true" />
|
<element signature="e#38#58#0" expanded="true" />
|
||||||
</folding>
|
</folding>
|
||||||
|
|
|
@ -44,7 +44,7 @@ class Angel extends AngelBase {
|
||||||
|
|
||||||
final Map _injections = {};
|
final Map _injections = {};
|
||||||
|
|
||||||
/// Creates a safe zone within which a request can be handled, without crashing the application.
|
@deprecated
|
||||||
Future<ZoneSpecification> Function(
|
Future<ZoneSpecification> Function(
|
||||||
HttpRequest request, RequestContext req, ResponseContext res)
|
HttpRequest request, RequestContext req, ResponseContext res)
|
||||||
createZoneForRequest;
|
createZoneForRequest;
|
||||||
|
@ -478,9 +478,11 @@ class Angel extends AngelBase {
|
||||||
/// Default constructor. ;)
|
/// Default constructor. ;)
|
||||||
Angel() : super() {
|
Angel() : super() {
|
||||||
bootstrapContainer();
|
bootstrapContainer();
|
||||||
|
// ignore: deprecated_member_use
|
||||||
createZoneForRequest = defaultZoneCreator;
|
createZoneForRequest = defaultZoneCreator;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@deprecated
|
||||||
Future<ZoneSpecification> defaultZoneCreator(request, req, res) async {
|
Future<ZoneSpecification> defaultZoneCreator(request, req, res) async {
|
||||||
return new ZoneSpecification(
|
return new ZoneSpecification(
|
||||||
print: (Zone self, ZoneDelegate parent, Zone zone, String line) {
|
print: (Zone self, ZoneDelegate parent, Zone zone, String line) {
|
||||||
|
|
Loading…
Reference in a new issue