Implement HttpReqCtx.container
This commit is contained in:
parent
cfc5991fff
commit
3e62d1d31f
4 changed files with 131 additions and 173 deletions
|
@ -12,7 +12,7 @@
|
||||||
<entry key="angel_container">
|
<entry key="angel_container">
|
||||||
<value>
|
<value>
|
||||||
<list>
|
<list>
|
||||||
<option value="$USER_HOME$/.pub-cache/hosted/pub.dartlang.org/angel_container-1.0.0-alpha/lib" />
|
<option value="$USER_HOME$/.pub-cache/hosted/pub.dartlang.org/angel_container-1.0.0-alpha.1/lib" />
|
||||||
</list>
|
</list>
|
||||||
</value>
|
</value>
|
||||||
</entry>
|
</entry>
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
<entry key="angel_route">
|
<entry key="angel_route">
|
||||||
<value>
|
<value>
|
||||||
<list>
|
<list>
|
||||||
<option value="$USER_HOME$/.pub-cache/hosted/pub.dartlang.org/angel_route-2.0.7/lib" />
|
<option value="$USER_HOME$/.pub-cache/hosted/pub.dartlang.org/angel_route-3.0.0/lib" />
|
||||||
</list>
|
</list>
|
||||||
</value>
|
</value>
|
||||||
</entry>
|
</entry>
|
||||||
|
@ -454,10 +454,10 @@
|
||||||
</properties>
|
</properties>
|
||||||
<CLASSES>
|
<CLASSES>
|
||||||
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dartlang.org/analyzer-0.32.4/lib" />
|
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dartlang.org/analyzer-0.32.4/lib" />
|
||||||
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dartlang.org/angel_container-1.0.0-alpha/lib" />
|
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dartlang.org/angel_container-1.0.0-alpha.1/lib" />
|
||||||
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dartlang.org/angel_http_exception-1.0.0+3/lib" />
|
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dartlang.org/angel_http_exception-1.0.0+3/lib" />
|
||||||
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dartlang.org/angel_model-1.0.0+1/lib" />
|
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dartlang.org/angel_model-1.0.0+1/lib" />
|
||||||
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dartlang.org/angel_route-2.0.7/lib" />
|
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dartlang.org/angel_route-3.0.0/lib" />
|
||||||
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dartlang.org/args-1.5.0/lib" />
|
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dartlang.org/args-1.5.0/lib" />
|
||||||
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dartlang.org/async-2.0.8/lib" />
|
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dartlang.org/async-2.0.8/lib" />
|
||||||
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dartlang.org/body_parser-1.1.1/lib" />
|
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dartlang.org/body_parser-1.1.1/lib" />
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
<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 beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/CHANGELOG.md" beforeDir="false" afterPath="$PROJECT_DIR$/CHANGELOG.md" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/lib/src/http/http_request_context.dart" beforeDir="false" afterPath="$PROJECT_DIR$/lib/src/http/http_request_context.dart" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/lib/src/core/server.dart" beforeDir="false" afterPath="$PROJECT_DIR$/lib/src/core/server.dart" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/pubspec.yaml" beforeDir="false" afterPath="$PROJECT_DIR$/pubspec.yaml" afterDir="false" />
|
||||||
</list>
|
</list>
|
||||||
<ignored path="$PROJECT_DIR$/.tmp/" />
|
<ignored path="$PROJECT_DIR$/.tmp/" />
|
||||||
<ignored path="$PROJECT_DIR$/temp/" />
|
<ignored path="$PROJECT_DIR$/temp/" />
|
||||||
|
@ -27,32 +27,11 @@
|
||||||
</component>
|
</component>
|
||||||
<component name="FileEditorManager">
|
<component name="FileEditorManager">
|
||||||
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
|
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
|
||||||
<file leaf-file-name="main.dart" pinned="false" current-in-tab="false">
|
<file leaf-file-name="server.dart" pinned="false" current-in-tab="true">
|
||||||
<entry file="file://$PROJECT_DIR$/example/main.dart">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="176">
|
|
||||||
<caret line="11" selection-start-line="11" selection-end-line="11" />
|
|
||||||
<folding>
|
|
||||||
<element signature="e#0#46#0" expanded="true" />
|
|
||||||
</folding>
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
</file>
|
|
||||||
<file leaf-file-name="routing_test.dart" pinned="false" current-in-tab="false">
|
|
||||||
<entry file="file://$PROJECT_DIR$/test/routing_test.dart">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="352">
|
|
||||||
<caret line="30" column="17" lean-forward="true" selection-start-line="30" selection-start-column="17" selection-end-line="30" selection-end-column="17" />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
</file>
|
|
||||||
<file leaf-file-name="server.dart" pinned="false" current-in-tab="false">
|
|
||||||
<entry file="file://$PROJECT_DIR$/lib/src/core/server.dart">
|
<entry file="file://$PROJECT_DIR$/lib/src/core/server.dart">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="156">
|
<state relative-caret-position="262">
|
||||||
<caret line="250" column="3" lean-forward="true" selection-start-line="250" selection-start-column="3" selection-end-line="250" selection-end-column="3" />
|
<caret line="82" column="47" lean-forward="true" selection-start-line="82" selection-start-column="47" selection-end-line="82" selection-end-column="47" />
|
||||||
<folding>
|
<folding>
|
||||||
<element signature="e#38#58#0" expanded="true" />
|
<element signature="e#38#58#0" expanded="true" />
|
||||||
</folding>
|
</folding>
|
||||||
|
@ -60,35 +39,11 @@
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
</file>
|
</file>
|
||||||
<file leaf-file-name="CHANGELOG.md" pinned="false" current-in-tab="true">
|
<file leaf-file-name="routable.dart" pinned="false" current-in-tab="false">
|
||||||
<entry file="file://$PROJECT_DIR$/CHANGELOG.md">
|
<entry file="file://$PROJECT_DIR$/lib/src/core/routable.dart">
|
||||||
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
|
||||||
<state split_layout="SPLIT">
|
|
||||||
<first_editor relative-caret-position="556">
|
|
||||||
<caret line="32" column="25" selection-start-line="32" selection-start-column="25" selection-end-line="32" selection-end-column="25" />
|
|
||||||
</first_editor>
|
|
||||||
<second_editor />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
</file>
|
|
||||||
<file leaf-file-name="request_context.dart" pinned="false" current-in-tab="false">
|
|
||||||
<entry file="file://$PROJECT_DIR$/lib/src/core/request_context.dart">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="5">
|
<state relative-caret-position="-7">
|
||||||
<caret line="49" column="56" selection-start-line="49" selection-start-column="56" selection-end-line="49" selection-end-column="56" />
|
<caret line="9" column="30" selection-start-line="9" selection-start-column="30" selection-end-line="9" selection-end-column="30" />
|
||||||
<folding>
|
|
||||||
<element signature="e#47#67#0" expanded="true" />
|
|
||||||
</folding>
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
</file>
|
|
||||||
<file leaf-file-name="injection.dart" pinned="false" current-in-tab="false">
|
|
||||||
<entry file="file://$PROJECT_DIR$/lib/src/core/injection.dart">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="-1443">
|
|
||||||
<caret line="31" column="19" selection-start-line="31" selection-start-column="19" selection-end-line="31" selection-end-column="19" />
|
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
|
@ -231,13 +186,10 @@
|
||||||
<option value="$PROJECT_DIR$/test/services_test.dart" />
|
<option value="$PROJECT_DIR$/test/services_test.dart" />
|
||||||
<option value="$PROJECT_DIR$/test/hooked_test.dart" />
|
<option value="$PROJECT_DIR$/test/hooked_test.dart" />
|
||||||
<option value="$PROJECT_DIR$/test/all.dart" />
|
<option value="$PROJECT_DIR$/test/all.dart" />
|
||||||
<option value="$PROJECT_DIR$/pubspec.yaml" />
|
|
||||||
<option value="$PROJECT_DIR$/lib/src/core/angel_base.dart" />
|
<option value="$PROJECT_DIR$/lib/src/core/angel_base.dart" />
|
||||||
<option value="$PROJECT_DIR$/lib/src/core/core.dart" />
|
<option value="$PROJECT_DIR$/lib/src/core/core.dart" />
|
||||||
<option value="$PROJECT_DIR$/test/controller_test.dart" />
|
<option value="$PROJECT_DIR$/test/controller_test.dart" />
|
||||||
<option value="$PROJECT_DIR$/lib/src/core/routable.dart" />
|
|
||||||
<option value="$PROJECT_DIR$/test/primitives_test.dart" />
|
<option value="$PROJECT_DIR$/test/primitives_test.dart" />
|
||||||
<option value="$PROJECT_DIR$/lib/src/http/angel_http.dart" />
|
|
||||||
<option value="$PROJECT_DIR$/lib/src/core/hooked_service.dart" />
|
<option value="$PROJECT_DIR$/lib/src/core/hooked_service.dart" />
|
||||||
<option value="$PROJECT_DIR$/lib/src/core/response_context.dart" />
|
<option value="$PROJECT_DIR$/lib/src/core/response_context.dart" />
|
||||||
<option value="$PROJECT_DIR$/lib/src/http/http_response_context.dart" />
|
<option value="$PROJECT_DIR$/lib/src/http/http_response_context.dart" />
|
||||||
|
@ -245,14 +197,17 @@
|
||||||
<option value="$PROJECT_DIR$/example/json.dart" />
|
<option value="$PROJECT_DIR$/example/json.dart" />
|
||||||
<option value="$PROJECT_DIR$/performance/hello/main.dart" />
|
<option value="$PROJECT_DIR$/performance/hello/main.dart" />
|
||||||
<option value="$PROJECT_DIR$/test/parameter_meta_test.dart" />
|
<option value="$PROJECT_DIR$/test/parameter_meta_test.dart" />
|
||||||
<option value="$PROJECT_DIR$/lib/src/http/http_request_context.dart" />
|
|
||||||
<option value="$PROJECT_DIR$/lib/src/core/service.dart" />
|
<option value="$PROJECT_DIR$/lib/src/core/service.dart" />
|
||||||
<option value="$PROJECT_DIR$/example/main.dart" />
|
<option value="$PROJECT_DIR$/example/main.dart" />
|
||||||
<option value="$PROJECT_DIR$/test/routing_test.dart" />
|
<option value="$PROJECT_DIR$/test/routing_test.dart" />
|
||||||
<option value="$PROJECT_DIR$/lib/src/core/metadata.dart" />
|
<option value="$PROJECT_DIR$/lib/src/core/metadata.dart" />
|
||||||
<option value="$PROJECT_DIR$/lib/src/core/request_context.dart" />
|
|
||||||
<option value="$PROJECT_DIR$/lib/src/core/server.dart" />
|
<option value="$PROJECT_DIR$/lib/src/core/server.dart" />
|
||||||
|
<option value="$PROJECT_DIR$/lib/src/http/angel_http.dart" />
|
||||||
|
<option value="$PROJECT_DIR$/lib/src/core/routable.dart" />
|
||||||
|
<option value="$PROJECT_DIR$/lib/src/core/request_context.dart" />
|
||||||
<option value="$PROJECT_DIR$/CHANGELOG.md" />
|
<option value="$PROJECT_DIR$/CHANGELOG.md" />
|
||||||
|
<option value="$PROJECT_DIR$/pubspec.yaml" />
|
||||||
|
<option value="$PROJECT_DIR$/lib/src/http/http_request_context.dart" />
|
||||||
</list>
|
</list>
|
||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
|
@ -266,9 +221,9 @@
|
||||||
<packageJsonPaths />
|
<packageJsonPaths />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectFrameBounds">
|
<component name="ProjectFrameBounds">
|
||||||
<option name="x" value="100" />
|
<option name="x" value="36" />
|
||||||
<option name="y" value="23" />
|
<option name="y" value="23" />
|
||||||
<option name="width" value="1172" />
|
<option name="width" value="1342" />
|
||||||
<option name="height" value="784" />
|
<option name="height" value="784" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectLevelVcsManager" settingsEditedManually="true">
|
<component name="ProjectLevelVcsManager" settingsEditedManually="true">
|
||||||
|
@ -672,35 +627,7 @@
|
||||||
<workItem from="1534009494986" duration="594000" />
|
<workItem from="1534009494986" duration="594000" />
|
||||||
<workItem from="1534546784803" duration="353000" />
|
<workItem from="1534546784803" duration="353000" />
|
||||||
<workItem from="1534547885788" duration="9908000" />
|
<workItem from="1534547885788" duration="9908000" />
|
||||||
<workItem from="1534793956753" duration="220000" />
|
<workItem from="1534793956753" duration="977000" />
|
||||||
</task>
|
|
||||||
<task id="LOCAL-00092" summary="Provide custom IsInstanceOf for testing">
|
|
||||||
<created>1531146512450</created>
|
|
||||||
<option name="number" value="00092" />
|
|
||||||
<option name="presentableId" value="LOCAL-00092" />
|
|
||||||
<option name="project" value="LOCAL" />
|
|
||||||
<updated>1531146512451</updated>
|
|
||||||
</task>
|
|
||||||
<task id="LOCAL-00093" summary="Tracked down the rogue "null" print">
|
|
||||||
<created>1531147206687</created>
|
|
||||||
<option name="number" value="00093" />
|
|
||||||
<option name="presentableId" value="LOCAL-00093" />
|
|
||||||
<option name="project" value="LOCAL" />
|
|
||||||
<updated>1531147206687</updated>
|
|
||||||
</task>
|
|
||||||
<task id="LOCAL-00094" summary="CHANGELOG, bump to 1.1.4+8">
|
|
||||||
<created>1531147434255</created>
|
|
||||||
<option name="number" value="00094" />
|
|
||||||
<option name="presentableId" value="LOCAL-00094" />
|
|
||||||
<option name="project" value="LOCAL" />
|
|
||||||
<updated>1531147434255</updated>
|
|
||||||
</task>
|
|
||||||
<task id="LOCAL-00095" summary="Patch services_test for strong mode">
|
|
||||||
<created>1531147799220</created>
|
|
||||||
<option name="number" value="00095" />
|
|
||||||
<option name="presentableId" value="LOCAL-00095" />
|
|
||||||
<option name="project" value="LOCAL" />
|
|
||||||
<updated>1531147799220</updated>
|
|
||||||
</task>
|
</task>
|
||||||
<task id="LOCAL-00096" summary="More <String, String> patches in tests">
|
<task id="LOCAL-00096" summary="More <String, String> patches in tests">
|
||||||
<created>1531148090824</created>
|
<created>1531148090824</created>
|
||||||
|
@ -1017,7 +944,35 @@
|
||||||
<option name="project" value="LOCAL" />
|
<option name="project" value="LOCAL" />
|
||||||
<updated>1534794125343</updated>
|
<updated>1534794125343</updated>
|
||||||
</task>
|
</task>
|
||||||
<option name="localTasksCounter" value="141" />
|
<task id="LOCAL-00141" summary="Remove Angel.inject">
|
||||||
|
<created>1534794207777</created>
|
||||||
|
<option name="number" value="00141" />
|
||||||
|
<option name="presentableId" value="LOCAL-00141" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1534794207778</updated>
|
||||||
|
</task>
|
||||||
|
<task id="LOCAL-00142" summary="Remove dep on package:pool">
|
||||||
|
<created>1534794372882</created>
|
||||||
|
<option name="number" value="00142" />
|
||||||
|
<option name="presentableId" value="LOCAL-00142" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1534794372882</updated>
|
||||||
|
</task>
|
||||||
|
<task id="LOCAL-00143" summary="waterfall now only accepts RequestHandler">
|
||||||
|
<created>1534794629985</created>
|
||||||
|
<option name="number" value="00143" />
|
||||||
|
<option name="presentableId" value="LOCAL-00143" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1534794629985</updated>
|
||||||
|
</task>
|
||||||
|
<task id="LOCAL-00144" summary="Remove req.inject">
|
||||||
|
<created>1534794764995</created>
|
||||||
|
<option name="number" value="00144" />
|
||||||
|
<option name="presentableId" value="LOCAL-00144" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1534794764995</updated>
|
||||||
|
</task>
|
||||||
|
<option name="localTasksCounter" value="145" />
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
<component name="TestHistory">
|
<component name="TestHistory">
|
||||||
|
@ -1053,7 +1008,7 @@
|
||||||
</history-entry>
|
</history-entry>
|
||||||
</component>
|
</component>
|
||||||
<component name="TimeTrackingManager">
|
<component name="TimeTrackingManager">
|
||||||
<option name="totallyTimeSpent" value="172427000" />
|
<option name="totallyTimeSpent" value="173184000" />
|
||||||
</component>
|
</component>
|
||||||
<component name="TodoView">
|
<component name="TodoView">
|
||||||
<todo-panel id="selected-file">
|
<todo-panel id="selected-file">
|
||||||
|
@ -1065,7 +1020,7 @@
|
||||||
</todo-panel>
|
</todo-panel>
|
||||||
</component>
|
</component>
|
||||||
<component name="ToolWindowManager">
|
<component name="ToolWindowManager">
|
||||||
<frame x="100" y="23" width="1172" height="784" extended-state="0" />
|
<frame x="36" y="23" width="1342" height="784" extended-state="0" />
|
||||||
<editor active="true" />
|
<editor active="true" />
|
||||||
<layout>
|
<layout>
|
||||||
<window_info anchor="right" id="Palette" order="3" />
|
<window_info anchor="right" id="Palette" order="3" />
|
||||||
|
@ -1084,13 +1039,14 @@
|
||||||
<window_info id="UI Designer" order="2" />
|
<window_info id="UI Designer" order="2" />
|
||||||
<window_info anchor="bottom" id="Debug" order="3" weight="0.39857143" />
|
<window_info anchor="bottom" id="Debug" order="3" weight="0.39857143" />
|
||||||
<window_info anchor="bottom" id="TODO" order="6" weight="0.32714286" />
|
<window_info anchor="bottom" id="TODO" order="6" weight="0.32714286" />
|
||||||
|
<window_info anchor="bottom" id="Messages" order="7" weight="0.33478895" />
|
||||||
<window_info anchor="right" id="Palette	" order="3" />
|
<window_info anchor="right" id="Palette	" order="3" />
|
||||||
<window_info id="Image Layers" order="2" />
|
<window_info id="Image Layers" order="2" />
|
||||||
<window_info anchor="right" id="Capture Analysis" order="3" />
|
<window_info anchor="right" id="Capture Analysis" order="3" />
|
||||||
<window_info anchor="bottom" id="Version Control" order="7" weight="0.32905984" />
|
<window_info anchor="bottom" id="Version Control" order="7" weight="0.32905984" />
|
||||||
<window_info anchor="bottom" id="Run" order="2" sideWeight="0.4964476" weight="0.3973799" />
|
<window_info anchor="bottom" id="Run" order="2" sideWeight="0.4964476" weight="0.3973799" />
|
||||||
<window_info anchor="bottom" id="Terminal" order="7" weight="0.44978166" />
|
<window_info anchor="bottom" id="Terminal" order="7" weight="0.44978166" />
|
||||||
<window_info content_ui="combo" id="Project" order="0" weight="0.27876106" />
|
<window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.27846155" />
|
||||||
<window_info anchor="right" id="SciView" order="4" />
|
<window_info anchor="right" id="SciView" order="4" />
|
||||||
<window_info anchor="right" id="Theme Preview" order="3" />
|
<window_info anchor="right" id="Theme Preview" order="3" />
|
||||||
<window_info id="Favorites" order="3" side_tool="true" />
|
<window_info id="Favorites" order="3" side_tool="true" />
|
||||||
|
@ -1103,7 +1059,6 @@
|
||||||
<window_info id="DB Browser" order="2" weight="0.32998413" />
|
<window_info id="DB Browser" order="2" weight="0.32998413" />
|
||||||
<window_info anchor="bottom" id="Find" order="1" weight="0.32905984" />
|
<window_info anchor="bottom" id="Find" order="1" weight="0.32905984" />
|
||||||
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
|
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
|
||||||
<window_info anchor="bottom" id="Messages" order="7" weight="0.33478895" />
|
|
||||||
<window_info anchor="bottom" id="Message" order="0" />
|
<window_info anchor="bottom" id="Message" order="0" />
|
||||||
<window_info anchor="right" id="Data View" order="4" />
|
<window_info anchor="right" id="Data View" order="4" />
|
||||||
</layout>
|
</layout>
|
||||||
|
@ -1116,10 +1071,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="Remove traces of json_god" />
|
|
||||||
<MESSAGE value="Remove lib/hooks.dart" />
|
|
||||||
<MESSAGE value="Remove lib/common.dart" />
|
|
||||||
<MESSAGE value="Strip out TypedService" />
|
|
||||||
<MESSAGE value="Make reflector a named parameter" />
|
<MESSAGE value="Make reflector a named parameter" />
|
||||||
<MESSAGE value="Force dep on Dart >=2.0.0-dev" />
|
<MESSAGE value="Force dep on Dart >=2.0.0-dev" />
|
||||||
<MESSAGE value="CHANGELOG now only reflects on 2.0.0-alpha+" />
|
<MESSAGE value="CHANGELOG now only reflects on 2.0.0-alpha+" />
|
||||||
|
@ -1141,7 +1092,11 @@
|
||||||
<MESSAGE value="Update query parsing" />
|
<MESSAGE value="Update query parsing" />
|
||||||
<MESSAGE value="Update CHANGELOG" />
|
<MESSAGE value="Update CHANGELOG" />
|
||||||
<MESSAGE value="Remove req.injections" />
|
<MESSAGE value="Remove req.injections" />
|
||||||
<option name="LAST_COMMIT_MESSAGE" value="Remove req.injections" />
|
<MESSAGE value="Remove Angel.inject" />
|
||||||
|
<MESSAGE value="Remove dep on package:pool" />
|
||||||
|
<MESSAGE value="waterfall now only accepts RequestHandler" />
|
||||||
|
<MESSAGE value="Remove req.inject" />
|
||||||
|
<option name="LAST_COMMIT_MESSAGE" value="Remove req.inject" />
|
||||||
</component>
|
</component>
|
||||||
<component name="XDebuggerManager">
|
<component name="XDebuggerManager">
|
||||||
<breakpoint-manager>
|
<breakpoint-manager>
|
||||||
|
@ -1170,13 +1125,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="112">
|
|
||||||
<caret line="14" column="40" lean-forward="true" selection-start-line="14" selection-start-column="40" selection-end-line="14" selection-end-column="40" />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/test/view_generator_test.dart">
|
<entry file="file://$PROJECT_DIR$/test/view_generator_test.dart">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="96">
|
<state relative-caret-position="96">
|
||||||
|
@ -1279,13 +1227,6 @@
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/example/templating.dart" />
|
<entry file="file://$PROJECT_DIR$/example/templating.dart" />
|
||||||
<entry file="file://$PROJECT_DIR$/pubspec.yaml">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="160">
|
|
||||||
<caret line="10" column="12" lean-forward="true" selection-start-line="10" selection-start-column="12" selection-end-line="10" selection-end-column="12" />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/test/all.dart">
|
<entry file="file://$PROJECT_DIR$/test/all.dart">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="352">
|
<state relative-caret-position="352">
|
||||||
|
@ -1343,26 +1284,6 @@
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/lib/src/core/routable.dart">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="191">
|
|
||||||
<caret line="69" column="5" lean-forward="true" selection-start-line="69" selection-start-column="5" selection-end-line="69" selection-end-column="5" />
|
|
||||||
<folding>
|
|
||||||
<element signature="e#40#60#0" expanded="true" />
|
|
||||||
</folding>
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/lib/src/http/angel_http.dart">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="435">
|
|
||||||
<caret line="330" column="40" selection-start-line="330" selection-start-column="40" selection-end-line="330" selection-end-column="40" />
|
|
||||||
<folding>
|
|
||||||
<element signature="e#0#20#0" expanded="true" />
|
|
||||||
</folding>
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/lib/src/http/http_response_context.dart">
|
<entry file="file://$PROJECT_DIR$/lib/src/http/http_response_context.dart">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="-1368">
|
<state relative-caret-position="-1368">
|
||||||
|
@ -1425,70 +1346,101 @@
|
||||||
</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="112">
|
||||||
|
<caret line="88" column="56" selection-start-line="88" selection-start-column="56" selection-end-line="88" selection-end-column="56" />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/lib/src/core/injection.dart">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="165">
|
||||||
|
<caret line="51" column="42" lean-forward="true" selection-start-line="51" selection-start-column="42" selection-end-line="51" selection-end-column="42" />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/example/main.dart">
|
<entry file="file://$PROJECT_DIR$/example/main.dart">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="176">
|
<state relative-caret-position="304">
|
||||||
<caret line="11" selection-start-line="11" selection-end-line="11" />
|
<caret line="19" column="38" lean-forward="true" selection-start-line="19" selection-start-column="38" selection-end-line="19" selection-end-column="38" />
|
||||||
<folding>
|
<folding>
|
||||||
<element signature="e#0#46#0" expanded="true" />
|
<element signature="e#0#46#0" expanded="true" />
|
||||||
</folding>
|
</folding>
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/lib/src/core/injection.dart">
|
<entry file="file://$PROJECT_DIR$/lib/src/http/angel_http.dart">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="-1443">
|
<state relative-caret-position="534">
|
||||||
<caret line="31" column="19" selection-start-line="31" selection-start-column="19" selection-end-line="31" selection-end-column="19" />
|
<caret line="346" column="47" selection-start-line="346" selection-start-column="47" selection-end-line="346" selection-end-column="47" />
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/lib/src/core/request_context.dart">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="5">
|
|
||||||
<caret line="49" column="56" selection-start-line="49" selection-start-column="56" selection-end-line="49" selection-end-column="56" />
|
|
||||||
<folding>
|
|
||||||
<element signature="e#47#67#0" expanded="true" />
|
|
||||||
</folding>
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/lib/src/http/http_request_context.dart">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="183">
|
|
||||||
<caret line="13" lean-forward="true" selection-start-line="13" selection-end-line="13" />
|
|
||||||
<folding>
|
<folding>
|
||||||
<element signature="e#0#20#0" expanded="true" />
|
<element signature="e#0#20#0" expanded="true" />
|
||||||
</folding>
|
</folding>
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/test/routing_test.dart">
|
<entry file="file://$PROJECT_DIR$/lib/src/core/request_context.dart">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="352">
|
<state relative-caret-position="163">
|
||||||
<caret line="30" column="17" lean-forward="true" selection-start-line="30" selection-start-column="17" selection-end-line="30" selection-end-column="17" />
|
<caret line="148" lean-forward="true" selection-start-line="148" selection-end-line="148" />
|
||||||
|
<folding>
|
||||||
|
<element signature="e#47#67#0" expanded="true" />
|
||||||
|
</folding>
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/lib/src/core/server.dart">
|
<entry file="file://$PROJECT_DIR$/lib/src/core/routable.dart">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="156">
|
<state relative-caret-position="-7">
|
||||||
<caret line="250" column="3" lean-forward="true" selection-start-line="250" selection-start-column="3" selection-end-line="250" selection-end-column="3" />
|
<caret line="9" column="30" selection-start-line="9" selection-start-column="30" selection-end-line="9" selection-end-column="30" />
|
||||||
<folding>
|
</state>
|
||||||
<element signature="e#38#58#0" expanded="true" />
|
</provider>
|
||||||
</folding>
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/pubspec.yaml">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="69">
|
||||||
|
<caret line="7" column="20" lean-forward="true" selection-start-line="7" selection-start-column="20" selection-end-line="7" selection-end-column="20" />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/test/routing_test.dart">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="352">
|
||||||
|
<caret line="30" column="17" selection-start-line="30" selection-start-column="17" selection-end-line="30" selection-end-column="17" />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/CHANGELOG.md">
|
<entry file="file://$PROJECT_DIR$/CHANGELOG.md">
|
||||||
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
||||||
<state split_layout="SPLIT">
|
<state split_layout="SPLIT">
|
||||||
<first_editor relative-caret-position="556">
|
<first_editor relative-caret-position="124">
|
||||||
<caret line="32" column="25" selection-start-line="32" selection-start-column="25" selection-end-line="32" selection-end-column="25" />
|
<caret line="10" column="41" selection-start-line="10" selection-start-column="41" selection-end-line="10" selection-end-column="41" />
|
||||||
</first_editor>
|
</first_editor>
|
||||||
<second_editor />
|
<second_editor />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/lib/src/http/http_request_context.dart">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="262">
|
||||||
|
<caret line="136" column="11" lean-forward="true" selection-start-line="136" selection-start-column="11" selection-end-line="136" selection-end-column="11" />
|
||||||
|
<folding>
|
||||||
|
<element signature="e#0#20#0" expanded="true" />
|
||||||
|
</folding>
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/lib/src/core/server.dart">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="262">
|
||||||
|
<caret line="82" column="47" lean-forward="true" selection-start-line="82" selection-start-column="47" selection-end-line="82" selection-end-column="47" />
|
||||||
|
<folding>
|
||||||
|
<element signature="e#38#58#0" expanded="true" />
|
||||||
|
</folding>
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
</component>
|
</component>
|
||||||
<component name="masterDetails">
|
<component name="masterDetails">
|
||||||
<states>
|
<states>
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'dart:io';
|
import 'dart:io';
|
||||||
|
|
||||||
|
import 'package:angel_container/angel_container.dart';
|
||||||
import 'package:body_parser/body_parser.dart';
|
import 'package:body_parser/body_parser.dart';
|
||||||
import 'package:http_parser/http_parser.dart';
|
import 'package:http_parser/http_parser.dart';
|
||||||
|
|
||||||
|
@ -8,10 +9,14 @@ import '../core/core.dart';
|
||||||
|
|
||||||
/// An implementation of [RequestContext] that wraps a [HttpRequest].
|
/// An implementation of [RequestContext] that wraps a [HttpRequest].
|
||||||
class HttpRequestContext extends RequestContext<HttpRequest> {
|
class HttpRequestContext extends RequestContext<HttpRequest> {
|
||||||
|
Container _container;
|
||||||
MediaType _contentType;
|
MediaType _contentType;
|
||||||
HttpRequest _io;
|
HttpRequest _io;
|
||||||
String _override, _path;
|
String _override, _path;
|
||||||
|
|
||||||
|
@override
|
||||||
|
Container get container => _container;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
MediaType get contentType {
|
MediaType get contentType {
|
||||||
return _contentType;
|
return _contentType;
|
||||||
|
@ -77,7 +82,8 @@ class HttpRequestContext extends RequestContext<HttpRequest> {
|
||||||
/// Magically transforms an [HttpRequest] into a [RequestContext].
|
/// Magically transforms an [HttpRequest] into a [RequestContext].
|
||||||
static Future<HttpRequestContext> from(
|
static Future<HttpRequestContext> from(
|
||||||
HttpRequest request, Angel app, String path) {
|
HttpRequest request, Angel app, String path) {
|
||||||
HttpRequestContext ctx = new HttpRequestContext();
|
HttpRequestContext ctx = new HttpRequestContext()
|
||||||
|
.._container = app.container.createChild();
|
||||||
|
|
||||||
String override = request.method;
|
String override = request.method;
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ dependencies:
|
||||||
angel_container: ^1.0.0-alpha
|
angel_container: ^1.0.0-alpha
|
||||||
angel_http_exception: ^1.0.0
|
angel_http_exception: ^1.0.0
|
||||||
angel_model: ^1.0.0
|
angel_model: ^1.0.0
|
||||||
angel_route: ^2.0.0
|
angel_route: ^3.0.0
|
||||||
body_parser: ^1.0.0
|
body_parser: ^1.0.0
|
||||||
charcode: ^1.0.0
|
charcode: ^1.0.0
|
||||||
combinator: ^1.0.0
|
combinator: ^1.0.0
|
||||||
|
|
Loading…
Reference in a new issue