How do I write an HTTP server in Perl?

回眸只為那壹抹淺笑 提交于 2019-12-07 00:55:52

问题


Is there a webserver or HTTP server module in the Perl standard library or in CPAN or elsewhere? I guess I'm looking for the equivalent of Python 3's http.server module. Thanks!


回答1:


In addition to HTTP::Daemon, I would recommend taking a look at HTTP::Server::Simple which indeed is very easy to use.




回答2:


See HTTP::Daemon




回答3:


Here are a few more:

  • Catalyst::Engine::HTTP
  • Net::Server


来源:https://stackoverflow.com/questions/1904420/how-do-i-write-an-http-server-in-perl

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!