Experimental pause/resume throttling

This commit is contained in:
Alex Hultman
2021-12-14 21:44:01 +01:00
parent e7d8355c37
commit 6dc4a11d10
2 changed files with 30 additions and 0 deletions
+10
View File
@@ -330,6 +330,16 @@ public:
using Super::getRemoteAddressAsText;
using Super::getNativeHandle;
HttpResponse *pause() {
Super::uv_pause();
return this;
}
HttpResponse *resume() {
Super::uv_resume();
return this;
}
/* Note: Headers are not checked in regards to timeout.
* We only check when you actively push data or end the request */