summaryrefslogtreecommitdiff
path: root/ref/api/url.html
diff options
context:
space:
mode:
authorgdamore <gdamore@users.noreply.github.com>2025-10-09 00:01:13 +0000
committergdamore <gdamore@users.noreply.github.com>2025-10-09 00:01:13 +0000
commit3db63c95b3b5cc8853fa6a3a19afe34a8ba20dd2 (patch)
tree08e14b1a16f98e0bae2a6a4ea16cbd1fa20bdf2f /ref/api/url.html
parent35df6a2f9a33084b71b24ab31197da81e6486078 (diff)
downloadnng-3db63c95b3b5cc8853fa6a3a19afe34a8ba20dd2.tar.gz
nng-3db63c95b3b5cc8853fa6a3a19afe34a8ba20dd2.tar.bz2
nng-3db63c95b3b5cc8853fa6a3a19afe34a8ba20dd2.zip
deploy: d006acfdd44af4210e39f571fa32314bcd36bb40
Diffstat (limited to 'ref/api/url.html')
-rw-r--r--ref/api/url.html13
1 files changed, 9 insertions, 4 deletions
diff --git a/ref/api/url.html b/ref/api/url.html
index e2f042b9..a38c2a1c 100644
--- a/ref/api/url.html
+++ b/ref/api/url.html
@@ -293,7 +293,7 @@ the query-information (the part following a ‘?’) and fragment
if they are not. The returned string will not include the leading ‘?’ or ‘#’
characters.</p>
<p>Note that any strings returned by these functions are only valid until
-<em>url</em> is freed with <a href="/api/url.html#destroy-a-url"><code>nng_url_free</code></a>.</p>
+<em>url</em> is freed with <a href="../../api/url.html#destroy-a-url"><code>nng_url_free</code></a>.</p>
<h2 id="format-a-url"><a class="header" href="#format-a-url">Format a URL</a></h2>
<pre><code class="language-c">int nng_url_sprintf(char *buf, size_t bufsz, const nng_url *url);
</code></pre>
@@ -322,7 +322,7 @@ and creates a dynamically allocated <code>nng_url</code>, returning it in <em>ur
<span class="mdbook-alerts-icon"></span>
important
</p>
-<p>Only <a href="/api/url.html#destroy-a-url"><code>nng_url_free</code></a> should be used to deallocate <code>nng_url</code> objects.</p>
+<p>Only <a href="../../api/url.html#destroy-a-url"><code>nng_url_free</code></a> should be used to deallocate <code>nng_url</code> objects.</p>
</div>
<h2 id="clone-a-url"><a class="header" href="#clone-a-url">Clone a URL</a></h2>
<pre><code class="language-c">int nng_url_clone(nng_url **dup, const nng_url *url);
@@ -332,8 +332,8 @@ and creates a dynamically allocated <code>nng_url</code>, returning it in <em>ur
<pre><code class="language-c">void nng_url_free(nng_url *url);
</code></pre>
<p>The <a name="a013"></a><code>nng_url_free</code> function destroy an <code>nng_url</code> object created with
-either <a href="/api/url.html#parse-a-url"><code>nng_url_parse</code></a> or <a href="/api/url.html#destroy-a-url"><code>nng_url_free</code></a>.</p>
-<p>This is the only correct way to destroy an <a href="/api/url.html#url-structure"><code>nng_url</code></a> object.</p>
+either <a href="../../api/url.html#parse-a-url"><code>nng_url_parse</code></a> or <a href="../../api/url.html#destroy-a-url"><code>nng_url_free</code></a>.</p>
+<p>This is the only correct way to destroy an <a href="../../api/url.html#url-structure"><code>nng_url</code></a> object.</p>
<h2 id="update-a-url-port"><a class="header" href="#update-a-url-port">Update a URL Port</a></h2>
<pre><code class="language-c">void nng_url_resolve_port(nng_url *url, uint32_t port);
</code></pre>
@@ -345,9 +345,14 @@ a URL with a new port. This will have no effect if the URL already has a non-zer
<h2 id="see-also"><a class="header" href="#see-also">See Also</a></h2>
<p>More information about Universal Resource Locators can be found in
<a href="https://tools.ietf.org/html/rfc3986">RFC 3986</a>.</p>
+<!-- NOTE: This assumes that any page referencing this is located
+ in a directory two levels down. Meaning ./api/somefile.md or
+ similar. mdbook cannot accommodate links that are called from
+ different levels in the hierarchy. -->
<!-- Symbol cross reference -->
<!-- HTTP -->
<!-- HTTP Status -->
+<!-- TLS -->
<!-- Macros -->
<!-- Protocols -->
<!-- Transports -->