nginx / unit

NGINX Unit - universal web app server - a lightweight and versatile open source server that simplifies the application stack by natively executing application code across eight different programming language runtimes.
https://unit.nginx.org
Apache License 2.0
5.36k stars 321 forks source link

HTTP internal requests, to local applications in this Unit #81

Open uasan opened 6 years ago

uasan commented 6 years ago

Hello.

We have a PHP application that send HTTP requests to the local Golang application.

We would not like to use local sockets. Call userland PHP function HTTP client, built into your PHP module, example:

unit_http_request($url, $headers, $body);

Which will send a request to the Golang application without using sockets, is this possible?

Thanks.

VBart commented 6 years ago

No. This is not possible.

uasan commented 6 years ago

This is useful functionality, especially if in the future you implement the HTTP response cache, then communicate between applications without network latency and expend file descriptors

Thanks.