Item323: Need a better way to append to the body of the response
Priority: Urgent
Current State: Closed
Released In:
Target Release:
Applies To: Engine
Component:
Branches:
Need a better way to append to the body of the Foswiki::Response. At the moment there is no choice but a string append.
Apaech2::Response has a
print
mothod, though the semantics are rather different, so i propose an appendToBody method.
After more thought, I realised that the print approach is the correct one. I also added an ASSERT that checks the order of the output so that
all headers must be assembled before body printing starts. This doesn't affect the cacheing of the response, but it does provide some guarantees
that earlier flushing will generate a valid output.