URL
##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 Members
isSsl: BoolTells if the URL use an SSL protocol
isHttp: BoolTells if the URL use an HTTP(S) protocol
isRelative: BoolTells 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)
protocol: StringThe protocol (ie:"http://")
port: IntThe port (ie:80)
host: StringThe host (ie:google.com)
resource: StringThe resource (ie:/search/index.html)
querystring: StringThe querystring (ie:?q=test&s=1)
toString(): String| Returns |
|---|
| String |
clone(): URLDeep copy of the URL
| Returns |
|---|
| URL |
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)
| Name | Type |
|---|---|
url |
URL |
| Returns |
|---|
| URL |
Class instance
| Name | Type | Description |
|---|---|---|
urlString |
String | An URL string in standard format "protocol://host:port/resource?querystring" |
Private Members
regexURL: EReg| Name | Type | Default |
|---|---|---|
resNew |
String | |
resOriginal |
String | "" |
| Returns |
|---|
| String |