- URL Patterns API https://developer.mozilla.org/en-US/docs/Web/API/URL_Pattern_API
Types
URLPattern = ref object of JsRoot hash*, hostname*, password*, pathname*, port, protocol*, search*, username*: cstring
- https://developer.mozilla.org/en-US/docs/Web/API/URL_Pattern_API
Procs
func exec(self: URLPattern; input, baseURL: cstring): JsObject {. importjs: "(#.$1((# || \'\'), (# || \'\')) || {})", ...raises: [], tags: [], forbids: [].}
func exec(self: URLPattern; input: cstring): JsObject {. importjs: "(#.$1((# || \'\')) || {})", ...raises: [], tags: [], forbids: [].}
func newURLPattern(): URLPattern {.importjs: "(new URLPattern(\'\'))", ...raises: [], tags: [], forbids: [].}
func newURLPattern(input, baseURL: cstring): URLPattern {. importjs: "(new URLPattern((# || \'\'), (# || \'\')))", ...raises: [], tags: [], forbids: [].}
func newURLPattern(input: cstring or JsObject): URLPattern {. importjs: "(new URLPattern((# || \'\')))", ...raises: [], tags: [], forbids: [].}
func port(self: URLPattern): uint16 {.importjs: "(#.port || 0)", ...raises: [], tags: [], forbids: [].}
func port=(self: URLPattern; value: uint16) {.importjs: "#.port = (# || \'\')", ...raises: [], tags: [], forbids: [].}
func test(self: URLPattern; input, baseURL: cstring): bool {. importjs: "(#.$1((# || \'\'), (# || \'\')) || false)", ...raises: [], tags: [], forbids: [].}
func test(self: URLPattern; input: cstring): bool {. importjs: "(#.$1((# || \'\')) || false)", ...raises: [], tags: [], forbids: [].}