ord@]host[:port]][/]path[?query][#fragment]</strong></p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>
<pre class="highlight swift"><code> <span class="c1">// Initialize a new URLParser instance, and check whether or not a connection has been established.</span>
 <span class="k">let</span> <span class="nv">url</span> <span class="o">=</span> <span class="s">"http://user:password@sample.host.com:8080/a/b/c?query=somestring#hash"</span><span class="o">.</span><span class="nf">data</span><span cla