drogon icon indicating copy to clipboard operation
drogon copied to clipboard

HttpRequestPtr reset interface

Open bethebest0622 opened this issue 1 year ago • 1 comments
trafficstars

if i want to reuse the existed HttpRequestPtr.

I need to clear the header (the previous request needs header, but current request dont need).

I found there is no clearHeader interface.

RemoveHeader is not effectient, could you add this?

bethebest0622 avatar May 29 '24 12:05 bethebest0622

Just a reminder, the HttpRequest object should only be reused after the previous request finished (technically it is safe to reuse after the previous request is sent, but we don't have a notification point there).

hwc0919 avatar May 30 '24 02:05 hwc0919