Function

GLib-2.0GLiburi_split_networkSince 2.66

  • Parses uri_string (which must be an absolute URI) according to flags, and returns the pieces relevant to connecting to a host. See the documentation for g_uri_split() for more details; this is mostly a wrapper around that function with simpler arguments. However, it will return an error if uri_string is a relative URI, or does not contain a hostname component.

    Parameters

    • uri_string: string

      a string containing an absolute URI

    • flags: GLib.UriFlags

      flags for parsing uri_string

    Returns [boolean, string, string, number]

    true if uri_string parsed successfully, false on error.

    2.66