[英]Is Rebol-based Cheyenne server able to process HTTP REST requests?
Is Rebol-based Cheyenne server able to process HTTP REST requests like « /product/1234» / « /product/{productId}» (with data in the URL, not as GET parameters) ? 基于Rebol的Cheyenne服务器是否能够处理HTTP REST请求(例如«/ product / 1234»/«/ product / {productId}»)(URL中的数据,而不是GET参数)? It could be possible if Cheyenne can redirect URLs with wildcards like '/product*' or '/product/*' to a single RSP (Rebol Server Page).
如果Cheyenne可以将带有'/ product *'或'/ product / *'之类的通配符的URL重定向到单个RSP(Rebol Server Page)。
Is it possible through configuration ? 是否可以通过配置? I've tried a few different configurations (http.cfg) without success.
我尝试了几种不同的配置(http.cfg),但没有成功。
Thanks. 谢谢。
The most straightforward way is to pass 404 error handling to some type of dispatcher, eg CGI or RSP: 最直接的方法是将404错误处理传递给某种类型的调度程序,例如CGI或RSP:
default [
default [%index.html]
on-status-code [
404 "/cgi-bin/request-handler.r"
]
]
My implementation of the Rebol Desktop Project has such an http.cfg
. 我对Rebol Desktop Project的实现具有这样的
http.cfg
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.