Welcome! Log In Create A New Profile

Advanced

Handling a subrequest response - determining upstream vs. static file and size

Brian Moran
March 20, 2012 12:34AM
I am modifying an existing working filter module. I am issuing a
subrequest, which is to a URI, or to a static local file (via a location in
the config); I'd like to determine the size of the response that I'm
getting back from the subrequest.

In the subrequest's header filter, I'm doing this to find out the response
size:
if (r->upstream) {
r->upstream->headers_in.content_length_n

--
e: bmoran@onehub.com
p: +1 206 390 4376

Onehub, Inc.
www.onehub.com
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Handling a subrequest response - determining upstream vs. static file and size

Brian Moran 1495 March 20, 2012 12:34AM

Re: Handling a subrequest response - determining upstream vs. static file and size

Brian Moran 524 March 20, 2012 12:36AM

Re: Handling a subrequest response - determining upstream vs. static file and size

zealot83 756 March 20, 2012 04:06AM

Re: Handling a subrequest response - determining upstream vs. static file and size

Maxim Dounin 748 March 20, 2012 04:22AM



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

Online Users

Guests: 215
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