Geoffrey Young wrote:

> > -----Original Message-----
> > From: Mark Maunder [mailto:[EMAIL PROTECTED]]
> > Sent: Sunday, October 21, 2001 1:49 PM
> > To: Nikolaus Rath
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: stacked handlers return vals
> >
> >
> > Nikolaus Rath wrote:
> >
> > > * Mark Maunder <[EMAIL PROTECTED]> wrote:
> > > > Hi,
> > > >
> > > > 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?
> > >
> > >    --Nikolaus
> >
> > 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.
>
> no matter what status you return, it matters not once you've sent your
> headers.  DONE is there if you want to close the client connection, which
> will prevent any other PerlHandler from getting to the client
>
> HTH
>
> --Geoff

Thanks, I missed that.


Reply via email to