Guest User

Untitled

a guest
Feb 21st, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. import("Juice.Engine.CGI");
  2.  
  3. var FCGI = import( "fcgi");
  4. var fastcgi = function Juice$Engine$FastCGI$_ctor(socket) {
  5. this.__proto__.__proto__.constructor.apply(this); // Aka call super proto
  6. this.fcgi = new FCGI(socket);
  7. };
  8.  
  9. fastcgi.prototype = {
  10. run: function Juice$Engine$FastCGI$run() {
  11. while (this.fcgi.accept() >= 0) {
  12. var env = this.fcgi.env;
  13.  
  14. var req = this.parse_request(env);
  15.  
  16. this.handle_request(req);
  17. }
  18. },
  19.  
  20. write: function(buffer) {
  21. this.fcgi.putstr(buffer);
  22. },
  23. __proto__: Juice.Engine.CGI.prototype
  24. };
Add Comment
Please, Sign In to add comment