diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 7b016146..aa5d08f2 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -3,8 +3,12 @@
+
+
+
+
@@ -27,35 +31,65 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
@@ -63,6 +97,30 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -75,12 +133,8 @@
- reflector
- Angel(M
- pool
super
close()
- close(
DEFUNC
const
dart2_constant/convert.dart
@@ -105,9 +159,12 @@
injecti
debug
handle(
+ lock
+ add(
+ close(
+ end()
- 'server'
FutureOr
var body = await getBody(rs);
@@ -137,6 +194,7 @@
));
req
req.container
+ close()
C:\Users\thosa\Source\Angel\framework\lib
@@ -202,15 +260,15 @@
-
+
+
+
-
-
-
+
@@ -247,6 +305,11 @@
+
+
+
+
+
@@ -313,7 +376,7 @@
-
+
@@ -613,21 +676,7 @@
-
-
-
- 1531409300283
-
-
-
- 1531409300283
-
-
- 1533353912000
-
-
-
- 1533353912001
+
1534547008912
@@ -958,7 +1007,21 @@
1534814859355
-
+
+ 1534815148128
+
+
+
+ 1534815148128
+
+
+ 1534815933898
+
+
+
+ 1534815933898
+
+
@@ -994,7 +1057,7 @@
-
+
@@ -1030,7 +1093,7 @@
-
+
@@ -1057,8 +1120,6 @@
-
-
@@ -1082,7 +1143,9 @@
-
+
+
+
@@ -1245,16 +1308,6 @@
-
-
-
-
-
-
-
-
-
-
@@ -1290,16 +1343,6 @@
-
-
-
-
-
-
-
-
-
-
@@ -1320,16 +1363,6 @@
-
-
-
-
-
-
-
-
-
-
@@ -1337,13 +1370,6 @@
-
-
-
-
-
-
-
@@ -1351,16 +1377,6 @@
-
-
-
-
-
-
-
-
-
-
@@ -1382,16 +1398,6 @@
-
-
-
-
-
-
-
-
-
-
@@ -1431,10 +1437,81 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1444,33 +1521,13 @@
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 48f6ad30..d5982410 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -59,4 +59,6 @@ as in many cases it is unnecessary and slows down response time.
* `ResponseContext.streaming` was replaced by `ResponseContext.isBuffered`.
* Made `LockableBytesBuilder` public.
* Removed the now-obsolete `ResponseContext.willCloseItself`.
-* Removed `ResponseContext.dispose`.
\ No newline at end of file
+* Removed `ResponseContext.dispose`.
+* Removed the now-obsolete `ResponseContext.end`.
+* Removed the now-obsolete `ResponseContext.releaseCorrespondingRequest`.
\ No newline at end of file
diff --git a/lib/src/core/response_context.dart b/lib/src/core/response_context.dart
index 533cdf98..0964db40 100644
--- a/lib/src/core/response_context.dart
+++ b/lib/src/core/response_context.dart
@@ -110,7 +110,7 @@ abstract class ResponseContext
file.openRead().pipe(this);
} else {
buffer.add(file.readAsBytesSync());
- end();
+ close();
}
}
@@ -126,15 +126,6 @@ abstract class ResponseContext
return new Future.value();
}
- /// Prevents further request handlers from running on the response, except for response finalizers.
- ///
- /// To disable response finalizers, see [willCloseItself].
- ///
- /// This method should also set [!isOpen] to true.
- void end() {
- if (_done?.isCompleted == false) _done.complete();
- }
-
/// Serializes JSON to the response.
void json(value) => this
..contentType = MediaType('application', 'json')
@@ -148,7 +139,7 @@ abstract class ResponseContext
write("$callbackName(${serializer(value)})");
this.contentType =
contentType ?? new MediaType('application', 'javascript');
- end();
+ close();
}
/// Renders a view to the response stream, and closes the response.
@@ -160,7 +151,7 @@ abstract class ResponseContext
..addAll(data ?? {}))).then((content) {
write(content);
headers['content-type'] = 'text/html';
- end();
+ close();
});
}
@@ -196,7 +187,7 @@ abstract class ResponseContext