1.1.1 • Published 4 years ago

fibjs-fastcgi-client v1.1.1

Weekly downloads
2
License
ISC
Repository
-
Last release
4 years ago

fibjs-fastcgi-client

A FastCGI client implementation in fibjs, mainly designed for cummunication with PHP.
let www_root="/mnt/e/workplace/fib_fcgi/php";
let idx=0;
let fcgi = require("fibjs-fastcgi-client");
var client = new fcgi.FcgiClient({host:"127.0.0.1",port:9000,root:www_root});
var rsp=client.requestByParams("/hi.php","a=abc&i="+(idx++));
console.log(rsp);
client.close();

#use pool let fcgi = require("fibjs-fastcgi-client");
var client = new fcgi.FcgiClientPool({host:"127.0.0.1",port:9000,min:1,max:4,root:www_root});
for(var i=0;i<100;i++){
require("coroutine).start(function(){
var rsp=client.requestByParams("/hi.php","a=abc&i="+(idx++));
console.log(rsp); });
}

#use unixSocket var client = new fcgi.FcgiClient({url:"unix:/var/php.socket",root:www_root});
var client = new fcgi.FcgiClient({url:"pipe://./pipe/php.socket",root:www_root});
var client = new fcgi.FcgiClient({url:"tcp://./pipe/php.socket",root:www_root});

1.1.1

4 years ago

1.1.0

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

5 years ago

1.0.9

5 years ago

1.0.10

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago