From 87e710f6caa04bc93e0f4fbd99cfa4a2b0922631 Mon Sep 17 00:00:00 2001 From: gdamore Date: Mon, 18 Nov 2024 06:18:17 +0000 Subject: deploy: 85aff44e00e836eda618d4f1cf013bce38b3fd44 --- ref/api/url.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'ref/api/url.html') diff --git a/ref/api/url.html b/ref/api/url.html index 3d09a7a8..cdbe9387 100644 --- a/ref/api/url.html +++ b/ref/api/url.html @@ -229,16 +229,16 @@ and RFC 3968.

that are not part of the IETF standards.

URL Structure

typedef struct nng_url {
-    char *u_rawurl;
-    char *u_scheme;
-    char *u_userinfo;
-    char *u_host;
-    char *u_hostname;
-    char *u_port;
-    char *u_path;
-    char *u_query;
-    char *u_fragment;
-    char *u_requri;
+    char       *u_rawurl;
+    const char *u_scheme;
+    char       *u_userinfo;
+    char       *u_host;
+    char       *u_hostname;
+    uint16_t   u_port;
+    char       *u_path;
+    char       *u_query;
+    char       *u_fragment;
+    char       *u_requri;
 } nng_url;
 

URL Fields

@@ -251,7 +251,7 @@ alter them, as the underlying memory is managed by the library.

  • u_userinfo: This username and password if supplied in the URL string. Will be NULL when not present.
  • u_host: The full host part of the URL, including the port if present (separated by a colon.)
  • u_hostname: The name of the host, and may be the empty string in some cases.
  • -
  • u_port: The port. May be empty if irrelevant or not specified.
  • +
  • u_port: The port. May be zero if irrelevant or not specified.
  • u_path: The path, typically used with HTTP or WebSockets. Will be empty string if not specified.
  • u_query: The query info (typically following ? in the URL.) Will be NULL if not present.
  • u_fragment: This is used for specifying an anchor, the part after # in a URL. Will be NULL if not present.
  • -- cgit v1.2.3-70-g09d2