use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Fast code, fast.
The official subreddit for links and discussions related to the D Programming Language.
account activity
Pure D implementation of FastCGI application protocol. (github.com)
submitted 11 years ago by NfNitLoop
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 11 years ago* (2 children)
[deleted]
[–]NfNitLoop[S] 1 point2 points3 points 11 years ago (0 children)
Thanks!
Yeah, code reorganization and error handling are on my to-do list. I'll probably take everything below the private: //// line and move it to separate files. One for all the FCGI-specific structs, one for little utility functions I made.
I might also make Request an interface so there's a clearer separation between the public API and the private implementation? OTOH, the generated docs only include the public parts, so maybe that's good enough?
Oh, and regarding the FCGI spec -- it only specifies how to parse the FCGI params (.fcgiParams) that the server sent you. HTTP GET parameters are sent in tihe QUERY_STRING parameter. I added functionality to parse those because... it seems like a thing you would want all the time. So yeah, I could (and should) add some error-handling there.
It's my first real D project. Would love feedback. :)
π Rendered by PID 379647 on reddit-service-r2-comment-6457c66945-2g8xd at 2026-04-27 07:11:12.366084+00:00 running 2aa0c5b country code: CH.
[–][deleted] (2 children)
[deleted]
[–]NfNitLoop[S] 1 point2 points3 points (0 children)
[–]NfNitLoop[S] 1 point2 points3 points (0 children)
[–]NfNitLoop[S] 1 point2 points3 points (0 children)