适用于Squeak/Pharo Web服务的Microframeworks [英] Microframeworks for Squeak/Pharo web service

查看:122
本文介绍了适用于Squeak/Pharo Web服务的Microframeworks的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

许多语言都具有用于编写非常小的网站或Web服务的微框架,例如适用于Python的Flask或适用于Ruby的Sinatra.在Squeak上,似乎没有任何等效的东西.伊利亚德(Iliad),海滨(Seaside)和艾达(AIDA)都只提供少量服务就非常繁重.完成此操作的首选方式是什么?直接向科曼奇语或斯瓦佐语中注入汉德尔?

Lots of languages have microframeworks for writing very tiny websites or web services, such as Flask for Python, or Sinatra for Ruby. On Squeak, there doesn't seem to be any equivalent; Iliad, Seaside, and AIDA are all very heavy for just having a little service. What's the preferred way to accomplish this? Directly injecting a hanlder into Comanche or Swazoo?

推荐答案

我想分享一下我认为是最新的信息(截至2012年底).

I would like to share what I think is more up-to-date information (as of end of 2012).

当前在Pharo 1.4/2.0中,HTTP客户端/服务器的事实上的标准似乎是 Zinc HTTP组件.并且最新的Seaside版本(3.0)也切换为Zinc.

Currently in Pharo 1.4/2.0 the de-facto standard for HTTP client/server seems to be the Zinc HTTP Components. And the latest Seaside version (3.0) switched to Zinc as well.

您当然可以直接使用Zinc来实现Web服务或服务网页.

You can of course use Zinc directly to implement web-services or serve web-pages.

专门研究类ZnServer,并搜索类似Zn*Delegate的类(例如ZnDefaultServerDelegateZnStaticFileServerDelegate)

Take a look particularly at classes ZnServer and search for classes like Zn*Delegate (like ZnDefaultServerDelegate or ZnStaticFileServerDelegate)

海边的最新版本包括对RESTful Web服务的支持.这可以用于实现Web服务或服务网页.非常简单.

Latest versions of Seaside include support for RESTful web-services. This can be used to implement web-services or serve web-pages. It's pretty straightforward.

有关更多信息,请参见在线海边书中的"REST服务"一章.本章以实现Web服务为中心,但也适用于Web页面.

For more information look at the "REST Services" chapter of the online Seaside book. This chapter centers about implementing web-services, but it works for web-pages as well.

我还听说过有关Ratpack,这是蒂姆·费尔根特雷夫(Tim Felgentreff)开发的类似sinatra的网络框架.有两个存储库.我认为github是最近的.看到这里:

I have also been told about Ratpack, a sinatra-like web-framework developed by Tim Felgentreff. There are two repositories. I think the github one is more recent. See here:

  • http://ss3.gemstone.com/ss/RatPack.html
  • https://github.com/timfel/ratpack

此信息来自我最近发布的类似问题.

This information comes from a similar question I posted recently.

这篇关于适用于Squeak/Pharo Web服务的Microframeworks的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆