Welcome! Log In Create A New Profile

Advanced

nginScript question

Posted by aledbf 
aledbf
nginScript question
July 12, 2017 11:00PM
Hi,

It is possible to make a HTTP request with nginScript? I am trying to avoid
adding the lua module just for this
Thanks in advance

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,275459,275459#msg-275459

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Dmitry Volyntsev
Re: nginScript question
July 13, 2017 02:20PM
On 12.07.2017 23:57, aledbf wrote:
> Hi,
>
> It is possible to make a HTTP request with nginScript?
>

Hi,

Unfortunately, this is not possible so far. But, we are going to add
such functionality in the future. You can find what is currently
possible here http://nginx.org/en/docs/http/ngx_http_js_module.html
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
aledbf
Re: nginScript question
July 13, 2017 05:20PM
Thanks!

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,275459,275477#msg-275477

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Dmitry Volyntsev
Re: nginScript question
April 10, 2018 02:50PM
On 13.07.2017 18:14, aledbf wrote:
> Thanks!

Hi,

I am glad to inform you that since njs-0.2.0 it is possible to create
arbitrary http subrequests from js_content phase.

Here you can find the subrequest API description:
http://hg.nginx.org/njs/rev/750f7c6f071c

Here you can find some usage examples:
http://hg.nginx.org/nginx-tests/rev/8e593b068fc0
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Anonymous User
Re: nginScript question
April 17, 2018 08:40PM
Is there a roadmap for nginScript and any plans to make it a part of the official nginx release?

> On Apr 10, 2018, at 8:45 AM, Dmitry Volyntsev <[email protected]> wrote:
>
>
>
>> On 13.07.2017 18:14, aledbf wrote:
>> Thanks!
>
> Hi,
>
> I am glad to inform you that since njs-0.2.0 it is possible to create arbitrary http subrequests from js_content phase.
>
> Here you can find the subrequest API description: http://hg.nginx.org/njs/rev/750f7c6f071c
>
> Here you can find some usage examples: http://hg.nginx.org/nginx-tests/rev/8e593b068fc0
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Artem S. Povalyukhin
Re: nginScript question
April 17, 2018 09:40PM
Hi!

On 04/17/2018 09:30 PM, djczaski@gmail.com wrote:
> Is there a roadmap for nginScript and any plans to make it a part of the official nginx release?
It is the official part.

$ apt show nginx-module-njs
Package: nginx-module-njs
Version: 1.13.12.0.2.0-1~xenial
Priority: optional
Section: httpd
Maintainer: Sergey Budnevitch <[email protected]>
Installed-Size: 1,707 kB
Depends: libc6 (>= 2.14), libedit2 (>= 2.11-20080614), libpcre3, nginx
(= 1.13.12-1~xenial)
Homepage: http://nginx.org/
Download-Size: 184 kB
APT-Manual-Installed: yes
APT-Sources: http://nginx.org/packages/mainline/ubuntu xenial/nginx
amd64 Packages
Description: nginx nginScript dynamic modules
 nginScript dynamic modules for nginx

wbr,
Artem

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Dmitry Volyntsev
Re: nginScript question
April 18, 2018 05:30PM
On 17.04.2018 21:30, djczaski@gmail.com wrote:
> Is there a roadmap for nginScript

There is. The short term preliminary plan is:
- stream integration refactoring to match the way it done in
http
- access to shared memory storage
- base64 encode
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Sorry, only registered users may post in this forum.

Click here to login