用Scheme打开url?
是否有某种库可供方案打开/读取 URL?如果重要的话,我正在使用 ypsilon 实现。
在 Google 上搜索与计划相关的任何内容都是毫无帮助的,尽管我在搜索中尝试非常具体且富有创意,但我却一无所获。
我不可能是第一个需要这种功能的人。
Is there some sort of library available for Scheme to open/read URLs? I'm using the ypsilon implementation, if it matters.
Searching Google for anything related to Scheme is most unhelpful, and even though I've tried to be very specific and creative in my searches I come up with absolutely nothing.
I can't be the first to need this sort of functionality.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
一般来说,您在Scheme 上找不到任何内容。您需要关注您正在使用的实现。
我使用 Chicken,因此以下是使用 http-client 模块实现该实现的方法。
You won't find anything on Scheme in general. You'll need to focus on the implementation you happen to be using.
I use Chicken, so here's how you'd do it with that implementation using the http-client module.
不是您所要求的,但这是获取网站文本所需的 Racket 代码:
此外,它可能会帮助您将Scheme视为一个语言系列,而不是单一语言;许多实现与 RnRS 标准有很大不同。
Not what you asked for, but here's the Racket code required to fetch a website's text:
Also, it may help you to regard Scheme as being a family of languages, rather than a single language; many implementations differ dramatically from the RnRS standards.
guile 有一个 www 模块,可能还有 PLT/Racket,但 SRFI 中没有。
guile has a www module, probably PLT/Racket too, but nothing in the SRFIs.