* Geoffrey Young <[EMAIL PROTECTED]> wrote: >>>> If I'm using stacked handlers, what should I return if I >>>> >> > >>>> > dont want the next handler in line to run because I've returned >>>> >> > > all >> required content to the client? (the eagle book says >>>> >> > > anything other than >> OK, DECLINED or DONE, but what's the >>>> >> > > appropriate return val that wont cause the client to think >>>> an >> > > error occured?) >>> >>> 200 / HTTP_DOCUMENT_FOLLOWS? >>> >> >> Nope, tried it already. It just goes on to the next handler as if you >> returned OK. > > what is wrong with DONE? DONE immediatly closes the client connection > and starts the logging phase. if you have sent the content already > then there is nothing to worry about. the call to send_http_header > will pick up on the any status you set previously or use the default > HTTP_OK set at the start of the request.
Isn't DONE ignored like OK and DECLINED? "Writing Apache Modules w. P.a.C." says: "..Each handler will be called in turn in the order in which it was declared. The exception to this rule is if one of the handlers in the series returns an error code (anything other than OK, DECLINED, or DONE)..." --Nikolaus