Roxen.git / server / base_server / prototypes.pike

version» Context lines:

Roxen.git/server/base_server/prototypes.pike:3890:    //! @note    //! Note that the segments of the path will be    //! encoded with @[Roxen.http_encode_url()].    void add_status (string path, int status_code,    void|string message, mixed... args)    {    path = map(path/"/", Roxen->http_encode_url)*"/";    MultiStatus::add_status (href_prefix + path, status_code, message, @args);    }    +  //! Add a status for a path.    //! -  +  //! @note +  //! Note that the segments of the path will be +  //! encoded with @[Roxen.http_encode_url()]. +  variant void add_status (string path, mapping(string:mixed) ret) +  { +  path = map(path/"/", Roxen->http_encode_url)*"/"; +  MultiStatus::add_status (href_prefix + path, ret); +  } +  +  //!    void add_namespace (string namespace)    {    MultiStatus::add_namespace (namespace);    }       //!    MultiStatus.Prefixed prefix(string href_prefix) {    return this_program (this_program::href_prefix + href_prefix);    }    }