Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import("Juice.Engine.CGI");
- var FCGI = import( "fcgi");
- var fastcgi = function Juice$Engine$FastCGI$_ctor(socket) {
- this.__proto__.__proto__.constructor.apply(this); // Aka call super proto
- this.fcgi = new FCGI(socket);
- };
- fastcgi.prototype = {
- run: function Juice$Engine$FastCGI$run() {
- while (this.fcgi.accept() >= 0) {
- var env = this.fcgi.env;
- var req = this.parse_request(env);
- this.handle_request(req);
- }
- },
- write: function(buffer) {
- this.fcgi.putstr(buffer);
- },
- __proto__: Juice.Engine.CGI.prototype
- };
Add Comment
Please, Sign In to add comment