HTTPUtils

Utility class for working with URLs.

Static properties

DEFAULT_INIT: RequestInit
PROTOCOL_REGEXP: RegExp

Static methods

  • basename(uri: string): string
  • dirname(path: string): string
  • extension(uri: string): string
  • isAbsoluteURL(path: string): boolean
  • isRelativePath(path: string): boolean
  • Returns true for paths that are declared relative to some unknown base path. For example, "foo/bar/" is relative both "/foo/bar/" is not.

  • resolve(base: string, path: string): string
Function symbol, where the argument and output are a box labeled 'glTF'.

Made by Don McCurdy. Documentation built with greendoc and published under Creative Commons Attribution 3.0.