pike.git / lib / modules / Standards.pmod / URI.pike

version» Context lines:

pike.git/lib/modules/Standards.pmod/URI.pike:172:      //! @decl void reparse_uri()   //! @decl void reparse_uri(URI base_uri)   //! @decl void reparse_uri(string base_uri)   //! Reparse the URI with respect to a new base URI. If   //! no base_uri was supplied, the old base_uri is thrown away.   //! The resolving is performed according to the guidelines   //! outlined by RFC 2396, Uniform Resource Identifiers (URI): Generic Syntax.   //! @param base_uri   //! Set the new base URI to this. + //! @throws + //! An exception is thrown if the @[uri] is a relative URI or only a + //! fragment, and missing a @[base_uri].   void reparse_uri(this_program|string|void base_uri)   {    string uri = raw_uri;       if(stringp(base_uri))    {    DEBUG("cloning base URI %O", base_uri);    this_program::base_uri = this_program(base_uri); // create a new URI object    }    else
pike.git/lib/modules/Standards.pmod/URI.pike:345:   //! @decl void create(string uri, URI base_uri)   //! @decl void create(string uri, string base_uri)   //! @param base_uri   //! When supplied, will root the URI a the given location. This is   //! needed to correctly verify relative URIs, but may be left out otherwise.   //! If left out, and uri is a relative URI, an error is thrown.   //! @param uri   //! When uri is another URI object, the created   //! URI will inherit all properties of the supplied uri   //! except, of course, for its base_uri. + //! @throws + //! An exception is thrown if the @[uri] is a relative URI or only a + //! fragment, and missing a @[base_uri].   void create(this_program|string uri,    this_program|string|void base_uri)   {    DEBUG("create(%O, %O) called!", uri, base_uri);    if(stringp(uri))    raw_uri = [string]uri; // Keep for future runs of reparse_uri after a base_uri change    else if(objectp(uri)) // If uri is 0, we want to inherit from the base_uri.    {    raw_uri = uri->raw_uri;    inherit_properties([object(this_program)]uri);