HttpHandler to handle all kinds of URL's in Mono Apache/XSP in order to build a REST service

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?

Answers


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.


Need Your Help

I am getting 2 scroll bars using MDL, how can I fix it?

javascript html css material-design material-design-lite

I am getting 2 scroll bars using mdl by google. I have added my html below. How can I fix this?

watchPosition() vs getCurrentPosition() with setTimeout

javascript iphone google-maps geolocation iphone-web-app

I need to determine a person's location within 50m. I'm wondering if I should use navigator.location.watchPostion() or call getCurrentPostion() over and over again. watchPostion() is the proper W...