Re: FastCGI binding or implementation?

2011-10-19 Thread Jacob Carlborg
On 2011-10-19 16:36, Adam Ruppe wrote: Jacob Carlborg: Why not just cache the generated HTML and let Apache handle it. That sounds hard... configuring Apache to do anything beyond the most trivial of tasks is a huge pain to me. No, it's not that hard. Just add a couple of rewrite-rules that

Re: FastCGI binding or implementation?

2011-10-19 Thread Adam Ruppe
Jacob Carlborg: > Why not just cache the generated HTML and let Apache handle it. That sounds hard... configuring Apache to do anything beyond the most trivial of tasks is a huge pain to me. It is easy to call "cgi.setCache(true);" though. > Then it doesn't even need to start the application if

Re: FastCGI binding or implementation?

2011-10-19 Thread Adam Ruppe
Andrea Fontana: > other http methods have nothing special Indeed. The only thing that might get you is if the data's content type is different than the default. That's possible on POST too, though, so still nothing special. My cgi library has an enum to tell you what the requestMethod is, and it

Re: FastCGI binding or implementation?

2011-10-19 Thread Andrea Fontana
AFAIK other http methods have nothing special. You have just to implement on your code: if (request.method == "PUT") { ... ... } if you need them. Am i wrong? Il giorno mer, 19/10/2011 alle 08.36 +0200, Jacob Carlborg ha scritto: > On 2011-10-18 19:24, Jeremy Sandell wrote: > > On Mon, Oct 17

Re: FastCGI binding or implementation?

2011-10-18 Thread Jacob Carlborg
On 2011-10-18 20:21, Adam D. Ruppe wrote: Tale time, only tangentially on topic. Today, I was coincidentally switching one of my work apps from standard CGI to Fast CGI. Almost trivial. Set up Apache, then build the program with -version=fastcgi. Done. Well, not 100% done. I had a piece of st

Re: FastCGI binding or implementation?

2011-10-18 Thread Jacob Carlborg
On 2011-10-18 19:24, Jeremy Sandell wrote: On Mon, Oct 17, 2011 at 2:11 PM, Jacob Carlborg mailto:d...@me.com>> wrote: On 2011-10-17 16:01, Andrea Fontana wrote: I handle request on different threads. I do some pre-processing on scgi data and I fill a struct: reques

Re: FastCGI binding or implementation?

2011-10-18 Thread Adam D. Ruppe
Tale time, only tangentially on topic. Today, I was coincidentally switching one of my work apps from standard CGI to Fast CGI. Almost trivial. Set up Apache, then build the program with -version=fastcgi. Done. Well, not 100% done. I had a piece of static data in the app that worked correctly b

Re: FastCGI binding or implementation?

2011-10-18 Thread simendsjo
On 18.10.2011 19:24, Jeremy Sandell wrote: On Mon, Oct 17, 2011 at 2:11 PM, Jacob Carlborg mailto:d...@me.com>> wrote: On 2011-10-17 16:01, Andrea Fontana wrote: I handle request on different threads. I do some pre-processing on scgi data and I fill a struct: reques

Re: FastCGI binding or implementation?

2011-10-18 Thread Adam D. Ruppe
I've been having trouble with my news postings, so forgive me if I said this before. But my cgi.d module supports FastCGI via the C library, with the same D interface as normal CGI or an embedded server: https://github.com/adamdruppe/misc-stuff-including-D-programming-language-web-stuff Just com

Re: FastCGI binding or implementation?

2011-10-18 Thread Jeremy Sandell
On Mon, Oct 17, 2011 at 2:11 PM, Jacob Carlborg wrote: > On 2011-10-17 16:01, Andrea Fontana wrote: > >> I handle request on different threads. I do some pre-processing on >> scgi data and I fill a struct: >> >> request.get[] >> request.post[] >> request.cookie[] >> request.headers[string] >> >>

Re: FastCGI binding or implementation?

2011-10-17 Thread Jacob Carlborg
On 2011-10-17 16:01, Andrea Fontana wrote: I handle request on different threads. I do some pre-processing on scgi data and I fill a struct: request.get[] request.post[] request.cookie[] request.headers[string] then I call a virtual function (to override on subclasses) like: do(request, output

Re: FastCGI binding or implementation?

2011-10-17 Thread Andrea Fontana
I handle request on different threads. I do some pre-processing on scgi data and I fill a struct: request.get[] request.post[] request.cookie[] request.headers[string] then I call a virtual function (to override on subclasses) like: do(request, output); where user fill output struct in a way li

Re: FastCGI binding or implementation?

2011-10-17 Thread Jacob Carlborg
On 2011-10-17 10:14, Andrea Fontana wrote: I'm working on a SCGI implementation for my job. SCGI is quite easy to handle and well-supported by servers. The only missing part is multipart POST (used for file post). get, post, cookie, headers (etc..) just work. I have to ask permission to publish

Re: FastCGI binding or implementation?

2011-10-17 Thread Andrea Fontana
I'm working on a SCGI implementation for my job. SCGI is quite easy to handle and well-supported by servers. The only missing part is multipart POST (used for file post). get, post, cookie, headers (etc..) just work. I have to ask permission to publish my code, btw it's a very easy protocol to

Re: FastCGI binding or implementation?

2011-10-15 Thread jdrewsen
Den 15-10-2011 03:14, Jeremy Sandell skrev: Hello! Does anyone know if there's a D2 binding or implementation for fastcgi as of yet? Thanks! Jeremy Sandell Adam Ruppe has a cgi module with some fastcgi in it afaik: http://arsdnet.net/dcode/cgi.d /Jonas

Re: FastCGI binding or implementation?

2011-10-14 Thread Adam D. Ruppe
On Fri, Oct 14, 2011 at 09:14:19PM -0400, Jeremy Sandell wrote: >Does anyone know if there's a D2 binding or implementation for fastcgi as > of yet? My cgi.d wraps the C library for fast cgi https://github.com/adamdruppe/misc-stuff-including-D-programming-language-web-stuff compile with -ver

FastCGI binding or implementation?

2011-10-14 Thread Jeremy Sandell
Hello! Does anyone know if there's a D2 binding or implementation for fastcgi as of yet? Thanks! Jeremy Sandell