AnonymousService now takes FutureOr
This commit is contained in:
parent
453d19aa31
commit
9e915fa7d2
3 changed files with 101 additions and 83 deletions
|
@ -2,28 +2,9 @@
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="7b89ff1e-1260-4dcf-9c3d-345de0471ea1" name="Default" comment="">
|
<list default="true" id="7b89ff1e-1260-4dcf-9c3d-345de0471ea1" name="Default" comment="">
|
||||||
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/http.dart" />
|
|
||||||
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/src/core/core.dart" />
|
|
||||||
<change type="MOVED" beforePath="$PROJECT_DIR$/lib/src/http/angel_base.dart" afterPath="$PROJECT_DIR$/lib/src/core/angel_base.dart" />
|
|
||||||
<change type="MOVED" beforePath="$PROJECT_DIR$/lib/src/http/anonymous_service.dart" afterPath="$PROJECT_DIR$/lib/src/core/anonymous_service.dart" />
|
|
||||||
<change type="MOVED" beforePath="$PROJECT_DIR$/lib/src/http/hooked_service.dart" afterPath="$PROJECT_DIR$/lib/src/core/hooked_service.dart" />
|
|
||||||
<change type="MOVED" beforePath="$PROJECT_DIR$/lib/src/http/injection.dart" afterPath="$PROJECT_DIR$/lib/src/core/injection.dart" />
|
|
||||||
<change type="MOVED" beforePath="$PROJECT_DIR$/lib/src/http/map_service.dart" afterPath="$PROJECT_DIR$/lib/src/core/map_service.dart" />
|
|
||||||
<change type="MOVED" beforePath="$PROJECT_DIR$/lib/src/http/metadata.dart" afterPath="$PROJECT_DIR$/lib/src/core/metadata.dart" />
|
|
||||||
<change type="MOVED" beforePath="$PROJECT_DIR$/lib/src/http/request_context.dart" afterPath="$PROJECT_DIR$/lib/src/core/request_context.dart" />
|
|
||||||
<change type="MOVED" beforePath="$PROJECT_DIR$/lib/src/http/response_context.dart" afterPath="$PROJECT_DIR$/lib/src/core/response_context.dart" />
|
|
||||||
<change type="MOVED" beforePath="$PROJECT_DIR$/lib/src/http/routable.dart" afterPath="$PROJECT_DIR$/lib/src/core/routable.dart" />
|
|
||||||
<change type="MOVED" beforePath="$PROJECT_DIR$/lib/src/http/server.dart" afterPath="$PROJECT_DIR$/lib/src/core/server.dart" />
|
|
||||||
<change type="MOVED" beforePath="$PROJECT_DIR$/lib/src/http/service.dart" afterPath="$PROJECT_DIR$/lib/src/core/service.dart" />
|
|
||||||
<change type="MOVED" beforePath="$PROJECT_DIR$/lib/src/http/typed_service.dart" afterPath="$PROJECT_DIR$/lib/src/core/typed_service.dart" />
|
|
||||||
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
||||||
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/angel_framework.dart" afterPath="$PROJECT_DIR$/lib/angel_framework.dart" />
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/CHANGELOG.md" afterPath="$PROJECT_DIR$/CHANGELOG.md" />
|
||||||
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/src/http/angel_http.dart" afterPath="$PROJECT_DIR$/lib/src/http/angel_http.dart" />
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/src/core/anonymous_service.dart" afterPath="$PROJECT_DIR$/lib/src/core/anonymous_service.dart" />
|
||||||
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/src/http/controller.dart" afterPath="$PROJECT_DIR$/lib/src/http/controller.dart" />
|
|
||||||
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/src/http/http.dart" afterPath="$PROJECT_DIR$/lib/src/http/http.dart" />
|
|
||||||
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/src/http/http_request_context.dart" afterPath="$PROJECT_DIR$/lib/src/http/http_request_context.dart" />
|
|
||||||
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/src/http/http_response_context.dart" afterPath="$PROJECT_DIR$/lib/src/http/http_response_context.dart" />
|
|
||||||
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/src/stats/metric_server.dart" afterPath="$PROJECT_DIR$/lib/src/stats/metric_server.dart" />
|
|
||||||
</list>
|
</list>
|
||||||
<ignored path="$PROJECT_DIR$/.tmp/" />
|
<ignored path="$PROJECT_DIR$/.tmp/" />
|
||||||
<ignored path="$PROJECT_DIR$/temp/" />
|
<ignored path="$PROJECT_DIR$/temp/" />
|
||||||
|
@ -59,19 +40,34 @@
|
||||||
<file leaf-file-name="server_test.dart" pinned="false" current-in-tab="false">
|
<file leaf-file-name="server_test.dart" pinned="false" current-in-tab="false">
|
||||||
<entry file="file://$PROJECT_DIR$/test/server_test.dart">
|
<entry file="file://$PROJECT_DIR$/test/server_test.dart">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="152">
|
<state relative-caret-position="648">
|
||||||
<caret line="118" column="34" lean-forward="false" selection-start-line="118" selection-start-column="34" selection-end-line="118" selection-end-column="34" />
|
<caret line="118" column="34" lean-forward="false" selection-start-line="118" selection-start-column="34" selection-end-line="118" selection-end-column="34" />
|
||||||
<folding />
|
<folding />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
</file>
|
</file>
|
||||||
<file leaf-file-name="http.dart" pinned="false" current-in-tab="true">
|
<file leaf-file-name="anonymous_service.dart" pinned="false" current-in-tab="false">
|
||||||
<entry file="file://$PROJECT_DIR$/lib/http.dart">
|
<entry file="file://$PROJECT_DIR$/lib/src/core/anonymous_service.dart">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="0">
|
<state relative-caret-position="227">
|
||||||
<caret line="0" column="28" lean-forward="true" selection-start-line="0" selection-start-column="28" selection-end-line="0" selection-end-column="28" />
|
<caret line="26" column="78" lean-forward="false" selection-start-line="26" selection-start-column="78" selection-end-line="26" selection-end-column="78" />
|
||||||
<folding />
|
<folding>
|
||||||
|
<element signature="e#0#20#0" expanded="true" />
|
||||||
|
</folding>
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
</file>
|
||||||
|
<file leaf-file-name="CHANGELOG.md" pinned="false" current-in-tab="true">
|
||||||
|
<entry file="file://$PROJECT_DIR$/CHANGELOG.md">
|
||||||
|
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
||||||
|
<state split_layout="SPLIT">
|
||||||
|
<first_editor relative-caret-position="150">
|
||||||
|
<caret line="10" column="0" lean-forward="true" selection-start-line="10" selection-start-column="0" selection-end-line="10" selection-end-column="0" />
|
||||||
|
<folding />
|
||||||
|
</first_editor>
|
||||||
|
<second_editor />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
|
@ -124,7 +120,6 @@
|
||||||
</component>
|
</component>
|
||||||
<component name="FindInProjectRecents">
|
<component name="FindInProjectRecents">
|
||||||
<findStrings>
|
<findStrings>
|
||||||
<find>cacheKey</find>
|
|
||||||
<find>testing</find>
|
<find>testing</find>
|
||||||
<find>cache</find>
|
<find>cache</find>
|
||||||
<find>errorHan</find>
|
<find>errorHan</find>
|
||||||
|
@ -154,6 +149,7 @@
|
||||||
<find>HttpHeaders.</find>
|
<find>HttpHeaders.</find>
|
||||||
<find>= false</find>
|
<find>= false</find>
|
||||||
<find>= true</find>
|
<find>= true</find>
|
||||||
|
<find>Future</find>
|
||||||
</findStrings>
|
</findStrings>
|
||||||
<replaceStrings>
|
<replaceStrings>
|
||||||
<replace>_isClosed</replace>
|
<replace>_isClosed</replace>
|
||||||
|
@ -182,6 +178,7 @@
|
||||||
<replace>streaming</replace>
|
<replace>streaming</replace>
|
||||||
<replace>!isOpen</replace>
|
<replace>!isOpen</replace>
|
||||||
<replace>'server'</replace>
|
<replace>'server'</replace>
|
||||||
|
<replace>FutureOr</replace>
|
||||||
</replaceStrings>
|
</replaceStrings>
|
||||||
<dirStrings>
|
<dirStrings>
|
||||||
<dir>C:\Users\thosa\Source\Angel\framework\lib</dir>
|
<dir>C:\Users\thosa\Source\Angel\framework\lib</dir>
|
||||||
|
@ -208,7 +205,6 @@
|
||||||
<component name="IdeDocumentHistory">
|
<component name="IdeDocumentHistory">
|
||||||
<option name="CHANGED_PATHS">
|
<option name="CHANGED_PATHS">
|
||||||
<list>
|
<list>
|
||||||
<option value="$PROJECT_DIR$/lib/src/http/metadata.dart" />
|
|
||||||
<option value="$PROJECT_DIR$/lib/src/http/injection.dart" />
|
<option value="$PROJECT_DIR$/lib/src/http/injection.dart" />
|
||||||
<option value="$PROJECT_DIR$/test/pattern_matcher_test.dart" />
|
<option value="$PROJECT_DIR$/test/pattern_matcher_test.dart" />
|
||||||
<option value="$PROJECT_DIR$/lib/src/http/angel_base.dart" />
|
<option value="$PROJECT_DIR$/lib/src/http/angel_base.dart" />
|
||||||
|
@ -232,7 +228,6 @@
|
||||||
<option value="$PROJECT_DIR$/example/main.dart" />
|
<option value="$PROJECT_DIR$/example/main.dart" />
|
||||||
<option value="$PROJECT_DIR$/lib/src/http/request_context.dart" />
|
<option value="$PROJECT_DIR$/lib/src/http/request_context.dart" />
|
||||||
<option value="$PROJECT_DIR$/lib/src/http/server.dart" />
|
<option value="$PROJECT_DIR$/lib/src/http/server.dart" />
|
||||||
<option value="$PROJECT_DIR$/CHANGELOG.md" />
|
|
||||||
<option value="$PROJECT_DIR$/performance/hello/main.dart" />
|
<option value="$PROJECT_DIR$/performance/hello/main.dart" />
|
||||||
<option value="$PROJECT_DIR$/test/di_test.dart" />
|
<option value="$PROJECT_DIR$/test/di_test.dart" />
|
||||||
<option value="$PROJECT_DIR$/test/hooked_test.dart" />
|
<option value="$PROJECT_DIR$/test/hooked_test.dart" />
|
||||||
|
@ -259,6 +254,8 @@
|
||||||
<option value="$PROJECT_DIR$/lib/src/http/controller.dart" />
|
<option value="$PROJECT_DIR$/lib/src/http/controller.dart" />
|
||||||
<option value="$PROJECT_DIR$/lib/src/http/angel_http.dart" />
|
<option value="$PROJECT_DIR$/lib/src/http/angel_http.dart" />
|
||||||
<option value="$PROJECT_DIR$/lib/http.dart" />
|
<option value="$PROJECT_DIR$/lib/http.dart" />
|
||||||
|
<option value="$PROJECT_DIR$/lib/src/core/anonymous_service.dart" />
|
||||||
|
<option value="$PROJECT_DIR$/CHANGELOG.md" />
|
||||||
</list>
|
</list>
|
||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
|
@ -315,6 +312,20 @@
|
||||||
<item name="lib" type="cbb8eebc:String" user="lib" />
|
<item name="lib" type="cbb8eebc:String" user="lib" />
|
||||||
<item name="src" type="cbb8eebc:String" user="src" />
|
<item name="src" type="cbb8eebc:String" user="src" />
|
||||||
</path>
|
</path>
|
||||||
|
<path>
|
||||||
|
<item name="Root" type="cbb8eebc:String" user="Root" />
|
||||||
|
<item name="framework" type="cbb8eebc:String" user="framework" />
|
||||||
|
<item name="lib" type="cbb8eebc:String" user="lib" />
|
||||||
|
<item name="src" type="cbb8eebc:String" user="src" />
|
||||||
|
<item name="core" type="cbb8eebc:String" user="core" />
|
||||||
|
</path>
|
||||||
|
<path>
|
||||||
|
<item name="Root" type="cbb8eebc:String" user="Root" />
|
||||||
|
<item name="framework" type="cbb8eebc:String" user="framework" />
|
||||||
|
<item name="lib" type="cbb8eebc:String" user="lib" />
|
||||||
|
<item name="src" type="cbb8eebc:String" user="src" />
|
||||||
|
<item name="http" type="cbb8eebc:String" user="http" />
|
||||||
|
</path>
|
||||||
<path>
|
<path>
|
||||||
<item name="Root" type="cbb8eebc:String" user="Root" />
|
<item name="Root" type="cbb8eebc:String" user="Root" />
|
||||||
<item name="framework" type="cbb8eebc:String" user="framework" />
|
<item name="framework" type="cbb8eebc:String" user="framework" />
|
||||||
|
@ -674,14 +685,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="9028000" />
|
<workItem from="1517973177718" duration="9184000" />
|
||||||
</task>
|
|
||||||
<task id="LOCAL-00020" summary="Updated Travis script">
|
|
||||||
<created>1498830956916</created>
|
|
||||||
<option name="number" value="00020" />
|
|
||||||
<option name="presentableId" value="LOCAL-00020" />
|
|
||||||
<option name="project" value="LOCAL" />
|
|
||||||
<updated>1498830956916</updated>
|
|
||||||
</task>
|
</task>
|
||||||
<task id="LOCAL-00021" summary="1.0.6">
|
<task id="LOCAL-00021" summary="1.0.6">
|
||||||
<created>1498857811360</created>
|
<created>1498857811360</created>
|
||||||
|
@ -1019,7 +1023,14 @@
|
||||||
<option name="project" value="LOCAL" />
|
<option name="project" value="LOCAL" />
|
||||||
<updated>1517981784676</updated>
|
<updated>1517981784676</updated>
|
||||||
</task>
|
</task>
|
||||||
<option name="localTasksCounter" value="69" />
|
<task id="LOCAL-00069" summary="Created pkg:framework/http.dart">
|
||||||
|
<created>1517982261106</created>
|
||||||
|
<option name="number" value="00069" />
|
||||||
|
<option name="presentableId" value="LOCAL-00069" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1517982261107</updated>
|
||||||
|
</task>
|
||||||
|
<option name="localTasksCounter" value="70" />
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
<component name="TestHistory">
|
<component name="TestHistory">
|
||||||
|
@ -1055,7 +1066,7 @@
|
||||||
</history-entry>
|
</history-entry>
|
||||||
</component>
|
</component>
|
||||||
<component name="TimeTrackingManager">
|
<component name="TimeTrackingManager">
|
||||||
<option name="totallyTimeSpent" value="127064000" />
|
<option name="totallyTimeSpent" value="127220000" />
|
||||||
</component>
|
</component>
|
||||||
<component name="TodoView">
|
<component name="TodoView">
|
||||||
<todo-panel id="selected-file">
|
<todo-panel id="selected-file">
|
||||||
|
@ -1090,7 +1101,7 @@
|
||||||
<window_info id="Image Layers" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
<window_info id="Image Layers" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="Capture Analysis" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
<window_info id="Capture Analysis" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32905984" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32905984" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.4002849" sideWeight="0.4964476" order="2" side_tool="false" content_ui="tabs" />
|
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4002849" sideWeight="0.4964476" order="2" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.48005697" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.48005697" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.23141123" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.23141123" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
||||||
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32905984" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32905984" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
||||||
|
@ -1114,7 +1125,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="Close #178, bump to 1.1.0" />
|
|
||||||
<MESSAGE value="Patched _matchesId, bump to 1.1.0+1" />
|
<MESSAGE value="Patched _matchesId, bump to 1.1.0+1" />
|
||||||
<MESSAGE value="Patched handleAngelHttpException, bump to 1.1.0+2" />
|
<MESSAGE value="Patched handleAngelHttpException, bump to 1.1.0+2" />
|
||||||
<MESSAGE value="Patched ResponseContext#isOpen, bump to 1.1.0+3" />
|
<MESSAGE value="Patched ResponseContext#isOpen, bump to 1.1.0+3" />
|
||||||
|
@ -1139,7 +1149,8 @@
|
||||||
<MESSAGE value="Deprecated AngelMetrics" />
|
<MESSAGE value="Deprecated AngelMetrics" />
|
||||||
<MESSAGE value="Export HTTP Req+Res context" />
|
<MESSAGE value="Export HTTP Req+Res context" />
|
||||||
<MESSAGE value="HTTP ResponseContext works" />
|
<MESSAGE value="HTTP ResponseContext works" />
|
||||||
<option name="LAST_COMMIT_MESSAGE" value="HTTP ResponseContext works" />
|
<MESSAGE value="Created pkg:framework/http.dart" />
|
||||||
|
<option name="LAST_COMMIT_MESSAGE" value="Created pkg:framework/http.dart" />
|
||||||
</component>
|
</component>
|
||||||
<component name="XDebuggerManager">
|
<component name="XDebuggerManager">
|
||||||
<breakpoint-manager>
|
<breakpoint-manager>
|
||||||
|
@ -1148,13 +1159,6 @@
|
||||||
<watches-manager />
|
<watches-manager />
|
||||||
</component>
|
</component>
|
||||||
<component name="editorHistoryManager">
|
<component name="editorHistoryManager">
|
||||||
<entry file="file://$PROJECT_DIR$/lib/src/core/routable.dart">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="-254">
|
|
||||||
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/tool/travis.sh">
|
<entry file="file://$PROJECT_DIR$/tool/travis.sh">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="45">
|
<state relative-caret-position="45">
|
||||||
|
@ -1294,17 +1298,6 @@
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/CHANGELOG.md">
|
|
||||||
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
|
||||||
<state split_layout="SPLIT">
|
|
||||||
<first_editor relative-caret-position="105">
|
|
||||||
<caret line="7" column="92" lean-forward="false" selection-start-line="7" selection-start-column="92" selection-end-line="7" selection-end-column="92" />
|
|
||||||
<folding />
|
|
||||||
</first_editor>
|
|
||||||
<second_editor />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/performance/hello/main.dart">
|
<entry file="file://$PROJECT_DIR$/performance/hello/main.dart">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="420">
|
<state relative-caret-position="420">
|
||||||
|
@ -1468,14 +1461,6 @@
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/lib/angel_framework.dart">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="45">
|
|
||||||
<caret line="3" column="26" lean-forward="false" selection-start-line="3" selection-start-column="26" selection-end-line="3" selection-end-column="26" />
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/lib/hooks.dart">
|
<entry file="file://$PROJECT_DIR$/lib/hooks.dart">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="675">
|
<state relative-caret-position="675">
|
||||||
|
@ -1581,14 +1566,6 @@
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/test/server_test.dart">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="152">
|
|
||||||
<caret line="118" column="34" lean-forward="false" selection-start-line="118" selection-start-column="34" selection-end-line="118" selection-end-column="34" />
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/lib/http.dart">
|
<entry file="file://$PROJECT_DIR$/lib/http.dart">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="0">
|
<state relative-caret-position="0">
|
||||||
|
@ -1597,6 +1574,45 @@
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/lib/angel_framework.dart">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="60">
|
||||||
|
<caret line="4" column="28" lean-forward="true" selection-start-line="4" selection-start-column="28" selection-end-line="4" selection-end-column="28" />
|
||||||
|
<folding>
|
||||||
|
<element signature="e#81#109#0" expanded="true" />
|
||||||
|
</folding>
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/test/server_test.dart">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="648">
|
||||||
|
<caret line="118" column="34" lean-forward="false" selection-start-line="118" selection-start-column="34" selection-end-line="118" selection-end-column="34" />
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/lib/src/core/anonymous_service.dart">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="227">
|
||||||
|
<caret line="26" column="78" lean-forward="false" selection-start-line="26" selection-start-column="78" selection-end-line="26" selection-end-column="78" />
|
||||||
|
<folding>
|
||||||
|
<element signature="e#0#20#0" expanded="true" />
|
||||||
|
</folding>
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/CHANGELOG.md">
|
||||||
|
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
||||||
|
<state split_layout="SPLIT">
|
||||||
|
<first_editor relative-caret-position="150">
|
||||||
|
<caret line="10" column="0" lean-forward="true" selection-start-line="10" selection-start-column="0" selection-end-line="10" selection-end-column="0" />
|
||||||
|
<folding />
|
||||||
|
</first_editor>
|
||||||
|
<second_editor />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
</component>
|
</component>
|
||||||
<component name="masterDetails">
|
<component name="masterDetails">
|
||||||
<states>
|
<states>
|
||||||
|
|
|
@ -6,6 +6,8 @@ empty string.
|
||||||
* Deprecated all `Angel` methods that directly touch an `HttpServer` or `HttpRequest`.
|
* Deprecated all `Angel` methods that directly touch an `HttpServer` or `HttpRequest`.
|
||||||
* Created the `AngelHttp` class.
|
* Created the `AngelHttp` class.
|
||||||
* Removed explicit dependence on `dart:io` for `Angel`, `RequestContext`, `ResponseContext`.
|
* Removed explicit dependence on `dart:io` for `Angel`, `RequestContext`, `ResponseContext`.
|
||||||
|
* Created `lib/http.dart`, which exports HTTP-specific functionality.
|
||||||
|
* `AnonymousService` now takes `FutureOr`.
|
||||||
|
|
||||||
# 1.1.0+3
|
# 1.1.0+3
|
||||||
* Modified `ResponseContext#isOpen` to also return `false` if streaming is being used.
|
* Modified `ResponseContext#isOpen` to also return `false` if streaming is being used.
|
||||||
|
|
|
@ -8,12 +8,12 @@ class AnonymousService extends Service {
|
||||||
Function _index, _read, _create, _modify, _update, _remove;
|
Function _index, _read, _create, _modify, _update, _remove;
|
||||||
|
|
||||||
AnonymousService(
|
AnonymousService(
|
||||||
{Future index([Map params]),
|
{FutureOr index([Map params]),
|
||||||
Future read(id, [Map params]),
|
FutureOr read(id, [Map params]),
|
||||||
Future create(data, [Map params]),
|
FutureOr create(data, [Map params]),
|
||||||
Future modify(id, data, [Map params]),
|
FutureOr modify(id, data, [Map params]),
|
||||||
Future update(id, data, [Map params]),
|
FutureOr update(id, data, [Map params]),
|
||||||
Future remove(id, [Map params])})
|
FutureOr remove(id, [Map params])})
|
||||||
: super() {
|
: super() {
|
||||||
_index = index;
|
_index = index;
|
||||||
_read = read;
|
_read = read;
|
||||||
|
|
Loading…
Reference in a new issue