HttpResponse::BodyAppender: inheritance is used instead of std::function to minimise dynamic memory allocations.