Welcome! Log In Create A New Profile

Advanced

Re: njs and subrequests

Valentin V. Bartenev
November 22, 2018 03:12PM
On Sunday, 18 November 2018 18:06:27 MSK Antoine Bonavita wrote:
> Hello Valentin,
>
> And thank you for your prompt answer. Writing such a http client and making
> it available is probably a pretty big work. But if I were to write a
> "limited" one that would fit my simple needs (GET only, only HTTP/1.1,
> response in memory, etc.) trying to re-use what already exists in nginx
> code base (asynchronous resolver comes to mind first), how should I proceed
> ? Which parts of the code should I start looking at/take as sample ?
>
> Basically, I think I am asking what is the extension model of njs...
>

I'm afraid that even a limited one can be quite a difficult task,
since it requires good knowledge not only njs internals but nginx too,
and involves async interaction between njs and nginx.

Anyway, if you're brave enough, then take a look at the existing njs
modules for nginx: http://hg.nginx.org/njs/file/tip/nginx

wbr, Valentin V. Bartenev



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

njs and subrequests

Antoine Bonavita November 17, 2018 09:08AM

Re: njs and subrequests

Valentin V. Bartenev November 17, 2018 10:18AM

Re: njs and subrequests

Antoine Bonavita November 18, 2018 10:08AM

Re: njs and subrequests

Valentin V. Bartenev November 22, 2018 03:12PM

Re: njs and subrequests

Antoine Bonavita November 26, 2018 04:32AM

Re: njs and subrequests

Dmitry Volyntsev November 19, 2018 08:30AM

Re: njs and subrequests

Antoine Bonavita November 21, 2018 02:40PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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