You are here: Foswiki>Tasks Web>Item323 (30 Nov 2008, CrawfordCurrie)Edit Attach

Item323: Need a better way to append to the body of the response

pencil
Priority: Urgent
Current State: Closed
Released In:
Target Release:
Applies To: Engine
Component:
Branches:
Reported By: Foswiki:Main.CrawfordCurrie
Waiting For:
Last Change By: CrawfordCurrie
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.

ItemTemplate edit

Summary Need a better way to append to the body of the response
ReportedBy Foswiki:Main.CrawfordCurrie
Codebase
SVN Range TWiki-4.2.3, Wed, 06 Aug 2008, build 17396
AppliesTo Engine
Component
Priority Urgent
CurrentState Closed
WaitingFor
Checkins distro:8d019fde002f distro:c684bcd80e68 PublishPlugin:4a6ba2cae512
ReleasedIn
Topic revision: r6 - 30 Nov 2008, CrawfordCurrie
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy