fastcgipp-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fastcgipp-users] How to stream outside response()?


From: Eddie Carle
Subject: Re: [Fastcgipp-users] How to stream outside response()?
Date: Mon, 11 May 2009 09:32:46 -0600
User-agent: KMail/1.11.2 (Linux/2.6.28-gentoo-r5; KDE/4.2.2; x86_64; ; )

On Monday 11 May 2009 9:26:39 am Goran wrote:
> I've a problem in sending content to "out" via "<<".
>
> I wanna generate content outside "response()" in a separate object.
>
> E.g.
>
> // Page.hpp
> class Page
> {
> public:
> content() { out << "Content-Type: text/html; charset=utf-8\r\n\r\n"; }
> };
>
> // Example.hpp
> class Example : public Fastcgipp::Request<char>
> {
> Page page;
> bool response() { page.content(); }
> };
>
> What do I have to do that Page.hpp works?


I would pass a reference to the out object to the constructor of the page object. Keep the reference stored in the Page class.
--
Eddie Carle


This message has been signed with an RFC4880 signature. It is
guaranteed to have originated from Eddie Carle and its contents
can be validated against its signature.

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]