request time

Erek Dyskant erek at
Mon Jul 14 01:15:29 MSD 2008

> after the proxy complete, I would like to add a header called
> PHP-Request-Time with the execution duration in milliseconds, like
> this:
> PHP-Request-Time 230ms

The problem is that it'd need to know the full request time before it
finishes sending headers and begins sending data, so it'd have to buffer
every request.

I'd suggest that you add the request time to your log files instead.

Erek Dyskant

More information about the nginx mailing list