class com.akifox.asynchttp.URL
Available on all platforms
URL
This class represents an URL and it is used by the library to handle URLs
@repo akifox-asynchttp repository
@author Simone Cingano (yupswing) Akifox Studio
@licence MIT Licence
Instance Fields
var isRelative:Bool
Tells if the URL is relative (Only absolute URLs are complete. Any relative one needs to be merged with a complete to make it point to a resource)
function new(urlString:String):Void
Class instance
urlString | An URL string in standard format "protocol://host:port/resource?querystring" |
Merge this URL with another one. If this URL is relative it will copy the missing parts from the given one, otherwise nothing will change. (this method is needed to make a relative URL complete)
URL | to be merged with |
returns | This URL |
function toString():String
returns | A string representation of the URL: "protocol://host:port/resource?querystring" |