aboutsummaryrefslogtreecommitdiff
path: root/lib/Plugins.Essentials/src/HttpEntity.cs
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2023-12-10 16:26:41 -0500
committerLibravatar vnugent <public@vaughnnugent.com>2023-12-10 16:26:41 -0500
commit546abea662263ef112c571c29706c47e875e09c4 (patch)
tree873c9176a4eb313b248fec9df700aa5ffe940954 /lib/Plugins.Essentials/src/HttpEntity.cs
parent01a654ff9a890be316734a42a207bf2dc14439c0 (diff)
http overhaul, fix range, remove range auto-processing, fix some perf bottlenecks from profiling
Diffstat (limited to 'lib/Plugins.Essentials/src/HttpEntity.cs')
-rw-r--r--lib/Plugins.Essentials/src/HttpEntity.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Plugins.Essentials/src/HttpEntity.cs b/lib/Plugins.Essentials/src/HttpEntity.cs
index 64f18ec..f48198b 100644
--- a/lib/Plugins.Essentials/src/HttpEntity.cs
+++ b/lib/Plugins.Essentials/src/HttpEntity.cs
@@ -183,14 +183,15 @@ namespace VNLib.Plugins.Essentials
///<inheritdoc/>
///<exception cref="ContentTypeUnacceptableException"></exception>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
- public void CloseResponse(HttpStatusCode code, ContentType type, Stream stream)
+ public void CloseResponse(HttpStatusCode code, ContentType type, Stream stream, long length)
{
- Entity.CloseResponse(code, type, stream);
//Verify content type matches
if (!Server.Accepts(type))
{
throw new ContentTypeUnacceptableException("The client does not accept the content type of the response");
}
+
+ Entity.CloseResponse(code, type, stream, length);
}
///<inheritdoc/>
@@ -209,7 +210,7 @@ namespace VNLib.Plugins.Essentials
///<inheritdoc/>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
- public void DisableCompression() => Entity.DisableCompression();
+ public void SetControlFlag(ulong mask) => Entity.SetControlFlag(mask);
/*
* Do not directly expose dangerous methods, but allow them to be called