From 3db63c95b3b5cc8853fa6a3a19afe34a8ba20dd2 Mon Sep 17 00:00:00 2001 From: gdamore Date: Thu, 9 Oct 2025 00:01:13 +0000 Subject: deploy: d006acfdd44af4210e39f571fa32314bcd36bb40 --- ref/api/url.html | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'ref/api/url.html') 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.

Note that any strings returned by these functions are only valid until -url is freed with nng_url_free.

+url is freed with nng_url_free.

Format a URL

int nng_url_sprintf(char *buf, size_t bufsz, const nng_url *url);
 
@@ -322,7 +322,7 @@ and creates a dynamically allocated nng_url, returning it in ur important

-

Only nng_url_free should be used to deallocate nng_url objects.

+

Only nng_url_free should be used to deallocate nng_url objects.

Clone a URL

int nng_url_clone(nng_url **dup, const nng_url *url);
@@ -332,8 +332,8 @@ and creates a dynamically allocated nng_url, returning it in ur
 
void nng_url_free(nng_url *url);
 

The nng_url_free function destroy an nng_url object created with -either nng_url_parse or nng_url_free.

-

This is the only correct way to destroy an nng_url object.

+either nng_url_parse or nng_url_free.

+

This is the only correct way to destroy an nng_url object.

Update a URL Port

void nng_url_resolve_port(nng_url *url, uint32_t port);
 
@@ -345,9 +345,14 @@ a URL with a new port. This will have no effect if the URL already has a non-zer

See Also

More information about Universal Resource Locators can be found in RFC 3986.

+ + -- cgit v1.2.3-70-g09d2