HttpHandler 用于处理 Mono Apache/XSP 中的各种 URL 以构建 REST 服务

发布于 2024-08-27 17:44:54 字数 400 浏览 7 评论 0原文

我想开发自己的 REST 服务,因此我创建了一个使用 verb="*"path="*" 配置的 IHttpHandler code>,~/MyRESTsrv/ 中的应用程序将处理任何派生的 URL。

这种方法在“集成模式”的 IIS7 中运行良好,如果将所有扩展映射到“aspnet_isapi.dll”,则显然在 IIS6 中。

在带有 Mono 的 Apache/XSP 中这可能吗?我必须做一些特别的事情还是它可以开箱即用?

干杯。

PS:XSP 是一个与 Apache 一起工作以提供 asp.net 页面的小型 Web 服务器,还是只是一个可用于开发的 Web 服务器,与 Apache 无关?

I want to develop my own REST service, so I've created an IHttpHandler that is configured with verb="*" and path="*", the the application in ~/MyRESTsrv/ will handle any derived URL.

This approach works good in IIS7 with "integrated mode" and apparently in IIS6 if you map all the extensions to "aspnet_isapi.dll".

Is this possible in Apache/XSP with Mono? Do I have to do something special or it will work out of the box?

Cheers.

PS: Is XSP a small web server that works with Apache in order to serve asp.net pages or it's just an web server you can use for development and has nothing to do with Apache?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

疑心病 2024-09-03 17:44:54

它可以与 XSP 一起开箱即用,而对于 Apache,您将需要“SetHandler mono”。

XSP就像cassini一样,所以与Apache无关。它是轻量级的,仅真正用于开发或测试。

It'll work out of the box with XSP and with Apache you'll need "SetHandler mono".

XSP is just like cassini, so nothing to do with Apache. It's lightweight and only really for development or testing.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文