Re: HTTP::Daemon class, output to a file handle

Randal Schwartz (merlyn@stonehenge.com)
11 Jan 1998 10:53:31 -0700


>>>>> "Tom" == Tom Metro <tmetro@vl.com> writes:

Tom> How about adjusting the HTTP::Daemon constructor to allow using a file
Tom> handle instead of a socket? (Technically, the device may still be a
Tom> socket, but the point would be to skip the socket opening/binding
Tom> procedure.) This would allow using the class in CGI scripts - in
Tom> particular non-parsed-header scripts.

Since HTTP::Daemon has IO::Handle in its inheritance tree, nothing
stops you from using "new_from_fd" to create it.  "perldoc IO::Handle".

-- 
Name: Randal L. Schwartz / Stonehenge Consulting Services (503)777-0095
Keywords: Perl training, UNIX[tm] consulting, video production, skiing, flying
Email: <merlyn@stonehenge.com> Snail: (Call) PGP-Key: (finger merlyn@teleport.com)
Web: <A HREF="http://www.stonehenge.com/merlyn/">My Home Page!</A>
Quote: "I'm telling you, if I could have five lines in my .sig, I would!" -- me