14 Jun 2005 09:28
Re: WebDAV - more than file access
Hi, Cool stuff! My approach has been to change as little as possible of the existing code. To see my changes to the Yaws code, you can run: cvs diff -r 1.278 yaws_server.erl cvs diff -r 1.89 yaws.erl As you can see, I'm adding DAV stuff incrementally as I need them. The basic idea is to have the code, which is making use of WebDav in an AppMod. So for example, I've started to implement a filesystem layer, which at the moment supports: PROPFIND, MKCOL, PUT, DELETE and GET. Check out the file dav.erl to see how it works. I'm also thinking of implementing a SMB browser similar to 'Davenport', which would make it possible to open up WebFolders in Internet Explorer. If I'm not mistaken, I think your 'dispatcher layer' is the same as the AppMod idea I described above? I have also started to make use of the xmerl application to parse and create XML. This makes it possible to create a datastructure (similar to ehtml) and have it expanded into XML. A simple interface is located in yaws_dav.erl and you can see in dav.erl how I'm using it. I guess it is ok to add your stuff right into the CVS (if you have commit rights) as long as you are careful with the changes to yaws_server.erl and friends.(Continue reading)
. I can centralize
this for my projects, but perhaps we should add a helper module that
RSS Feed