2

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) ? It could be possible if Cheyenne can redirect URLs with wildcards like '/product*' or '/product/*' to a single RSP (Rebol Server Page).

Is it possible through configuration ? I've tried a few different configurations (http.cfg) without success.

Thanks.

4

1 回答 1

2

最直接的方法是将 404 错误处理传递给某种类型的调度程序,例如 CGI 或 RSP:

default [
    default [%index.html]
    on-status-code [
        404 "/cgi-bin/request-handler.r"
    ]
]

我的Rebol 桌面项目的实现有这样一个http.cfg.

于 2018-02-26T01:46:39.287 回答