Roxen.git / server / etc / modules / PropertySet.pike

version» Context lines:

Roxen.git/server/etc/modules/PropertySet.pike:30:   //! Usually called via @[query_properties()].   static void create(string path, string abs_path, RequestID id)   {    global::path = path;    global::abs_path = abs_path;    global::id = id;       ASSERT_IF_DEBUG(has_prefix(abs_path, "/") && has_suffix(abs_path, path));   }    + //! @decl static void destroy(); + //!   //! Destruction callback.   //!   //! Note that this function must unroll any uncommitted   //! property changes. - static void destroy(); +       //! Return an @[Stdio.Stat] object for the resource. Its main use is   //! to tell collections (i.e. directories) from non-collections.   Stat get_stat();      //! Called by the default @[query_property] implementation to get the   //! response headers a GET or HEAD request on @[path] would yield.   //! It's used to fill in the properties that should reflect various   //! response headers.   mapping(string:string) get_response_headers();