Monkey Documentation

Class Url


Constructors:
  • New ( url:String, defaultScheme:String="http", defaultPort:Int=80 )
Properties:
Methods:

Constructor Documentation

Method New ( url:String, defaultScheme:String="http", defaultPort:Int=80 )

Creates a new url object.

If the url does not contain a scheme or port, the appropriate defaultScheme and/or defaultPort value is used.


Property Documentation

Method Domain : String () Property

Returns the domain part of the url.

Method Fragment : String () Property

Returns the anchor part of the url.

Method FullPath : String () Property

Returns the path, query and fragment parts of the url, combined with appropriate separators.

Method Password : String () Property

Returns the password part of the url.

Method Path : String () Property

Returns the path part of the url.

Method Port : Int () Property

Returns the port part of the url.

Method Query : String () Property

Returns the query part of the url.

Method Scheme : String () Property

Returns the scheme part of the url.

Method Username : String () Property

Returns the username part of the url.


Method Documentation

Method Set : Void ( url:String )

Changes the url.

If the url does not contain a scheme or port, the appropriate default scheme and/or port value provided to the constructor is used.

Method ToString : String ()

Returns the url as a string.