On Wed, Feb 01, 2006 at 08:43:59PM -0800, Allison Randal wrote:
> I've just applied a patch to Pod::Webserver from Nicholas Clark,  
> based on a concept Nick and Sean discussed a while ago. The patch  
> eliminates the dependency on LWP by mocking (or duplicating) a  
> limited subset of the functionality provided by HTTP::Daemon,  
> HTTP::Request, HTTP::Response, and HTTP::Date. I'm not generally a  
> fan of this sort of code duplication, but in this case it makes  
> sense. The goal is to make it possible to include Pod::Webserver and  
> the podwebserver script in the Perl core. Or, as Nick puts it:
> 
>   ...keeping up with the Joneses:
> 
>     pydoc -p <port>
>         Start an HTTP server on the given port on the local machine.
> 
> I'd like to get some feedback from existing Pod::Webserver users on  
> how the changes affect them. Or if you just want to comment on the  
> patch in general, that's also welcome. The latest source is available  
> at:

I'd like to comment on the patch in general :-)

I wasn't sure if Mock::* was the best name to use.
Also, the patch as supplied was intended to give the minimum changes to the
POD part of the code whilst keeping everything working, more as a proof of
concept than a final version. If the chosen path is to drop the use of
HTTP:Daemon and associated modules, then I believe that it's possible to
clean the code still further by simplifying the API between the two halves.

Nicholas Clark

Reply via email to