Actions
Bug #13981
openAccess Wt::Http::Message::body() without a copy
Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
09/12/2025
Due date:
% Done:
0%
Estimated time:
Description
Hello,
I am wondering if we could change/add to the API to avoid the string copy in Wt::Http::Message::body()
as the request may be quite large. Maybe using view on the underlying stringbuf/string?
I tried bodyDataReceived()
, but I always hit "asio.ssl.stream / stream truncated" after the client timeout (default to 10s), whereas I immediately get the client done callback when not using the bodyDataReceived()
callback (same error though)
And I am afraid Signal<std::string>
is also copying the data internally when emitting.
What do you think?
No data to display
Actions