Zebra API Doc

zebra.URL Class

URL class

Constructor

zebra.URL

(
  • url
)

Parameters:

  • url String

    an url

Item Index

Attributes

Methods

getParentURL

() zebra.URL

Get a parent URL of the URL


Return: zebra.URL

a parent URL

isAbsolute

(
  • u
)
Boolean

Test if the given url is absolute

Parameters:

  • u U

    an URL


Return: Boolean

true if the URL is absolute

join

(
  • p
)
String

Join the given relative path to the URL. If the passed path starts from "/" character it will be joined without taking in account the URL path

Parameters:

  • p String

    a relative path


Return: String

an absolute URL

Attributes

host

String readonly

Host

path

String readonly

URL path

protocol

String readonly

URL protocol

qs

String readonly

Query string