Welcome! Log In Create A New Profile

Advanced

Re: Subrequests and output filters

Maxim Dounin
August 07, 2015 02:02PM
Hello!

On Fri, Aug 07, 2015 at 11:33:06AM +0000, Maxime Henrion wrote:

> Thanks for the answer.
>
> I have tried using the NGX_HTTP_SUBREQUEST_IN_MEMORY flag and a
> post subrequest callback; in fact the code I copy-pasted uses
> those. However, I don't see how to get at the response's body
> from this callback. Looking at the SSI module code, the
> ngx_http_ssi_stub_output() post subrequest callback does some
> consistency checks, sets the headers if they haven't been set
> already, and then just calls into ngx_http_output_filter() with
> a buffer chain that was actually passed to it through the "data"
> field of the post subrequest handler structure.
>
> I'm obviously missing things here, but I don't understand how to
> get at that response's body still.

Function to look for is ngx_http_ssi_set_variable().

--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Subrequests and output filters

Maxime Henrion 688 August 05, 2015 07:24AM

Re: Subrequests and output filters

Yichun Zhang (agentzh) 282 August 05, 2015 11:20AM

Re: Subrequests and output filters

Maxim Dounin 318 August 05, 2015 02:56PM

RE: Subrequests and output filters

Maxime Henrion 356 August 07, 2015 07:34AM

Re: Subrequests and output filters

Maxim Dounin 299 August 07, 2015 02:02PM

RE: Subrequests and output filters

Maxime Henrion 274 August 07, 2015 02:24PM

Re: Subrequests and output filters

Maxim Dounin 317 August 07, 2015 05:48PM



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

Online Users

Guests: 129
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready