From 83c9cde1f16e088bac9fba3fca5718baac1c32b6 Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Mon, 23 Aug 2021 19:10:39 +0200 Subject: Added HttpServerRequest::ReadPayloadPackage() --- zencore/include/zencore/httpserver.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'zencore/include') diff --git a/zencore/include/zencore/httpserver.h b/zencore/include/zencore/httpserver.h index 9f19479c1..6412a5a9a 100644 --- a/zencore/include/zencore/httpserver.h +++ b/zencore/include/zencore/httpserver.h @@ -22,6 +22,7 @@ using HttpContentType = ZenContentType; class IoBuffer; class CbObject; +class CbPackage; class StringBuilderBase; enum class HttpVerb @@ -219,12 +220,13 @@ public: /** Read POST/PUT payload This will return a null buffer if the contents are not fully available yet, and the handler should - at that point return - another completion request will be issues once the contents have been received + at that point return - another completion request will be issued once the contents have been received fully. */ virtual IoBuffer ReadPayload() = 0; ZENCORE_API CbObject ReadPayloadObject(); + ZENCORE_API CbPackage ReadPayloadPackage(); /** Respond with payload -- cgit v1.2.3