简体   繁体   中英

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) ? 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.

The most straightforward way is to pass 404 error handling to some type of dispatcher, eg CGI or 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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM