Documentation ¶
Overview ¶
Package url contains the URL structure.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PathSplitQuery ¶
PathSplitQuery splits a path from a query.
Types ¶
type URL ¶
URL is a RTSP URL. This is basically an HTTP URL with some additional functions to handle control attributes.
func (*URL) CloneWithoutCredentials ¶
CloneWithoutCredentials clones a URL without its credentials.
func (*URL) Hostname ¶
Hostname returns u.Host, stripping any valid port number if present.
If the result is enclosed in square brackets, as literal IPv6 addresses are, the square brackets are removed from the result.
func (*URL) Port ¶
Port returns the port part of u.Host, without the leading colon.
If u.Host doesn't contain a valid numeric port, Port returns an empty string.
func (*URL) RTSPPathAndQuery ¶
RTSPPathAndQuery returns the path and query of a RTSP URL.