Welcome! Log In Create A New Profile


Re: ngx_http_set_ctx

Maxim Dounin
December 23, 2011 08:56AM

On Thu, Dec 22, 2011 at 04:51:49PM -0500, J.Q. S. wrote:

> Could someone please explain what the ngx_http_set_ctx macro is doing and
> when it should be used?

It sets pointer to a module context structure within request. It
is expected to be used when module needs to preserve some
information between different invocations within the same request.
It's commonly used by filter modules, see e.g.

> A related question, are patches that add documentation to the code welcome?
> Or are we trying to keep comments out of the code?

Not really. We prefer to comment only non-trivial aspects of the

Maxim Dounin

nginx-devel mailing list
Subject Author Views Posted


J.Q. S. 2435 December 22, 2011 04:52PM

Re: ngx_http_set_ctx

Maxim Dounin 847 December 23, 2011 08:56AM

Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 89
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready