首页> 外文期刊>Journal of Functional Programming >Server side web scripting in Haskell
【24h】

Server side web scripting in Haskell

机译:Haskell中的服务器端Web脚本

获取原文
获取原文并翻译 | 示例

摘要

The Common Gateway interface (CGI) for generating dynamic documents on web servers imposes much accidental complexity on the programmer. The Haskell/CGI library docu- mented in this paper hides all this unpleasantness by using the common sense 'design pattern' of separating model and presentation. Low-level query string requests are represented by association lists, and primitive HTTP responses are easily constructed using a set of HTML generating combinators. The CGl programmer only needs to write a worker function that maps an abstract request into an abstract response. A (higher-order) wrapper function then transmutes the worker into a real low-level CGI script that deals with the exact format of concrete requests and responses as required by the CGI standard.
机译:用于在Web服务器上生成动态文档的通用网关接口(CGI)给程序员带来了很多偶然的复杂性。本文中记录的Haskell / CGI库通过使用将模型和表示分离的常识“设计模式”隐藏了所有这些不愉快之处。低级查询字符串请求由关联列表表示,并且使用一组HTML生成组合器可以轻松构造原始HTTP响应。 CGl程序员只需要编写一个将抽象请求映射为抽象响应的辅助函数即可。然后,(高级)包装函数将工作程序转换为真正的低级CGI脚本,该脚本处理CGI标准所要求的具体请求和响应的确切格式。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号