table of contents
NNG_URL(5) | NNG Reference Manual | NNG_URL(5) |
NAME¶
nng_url - Universal Resource Locator object
SYNOPSIS¶
#include <nng/nng.h> 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; } nng_url;
DESCRIPTION¶
An nng_url is a structure used for representing URLs. These structures are created by parsing string formatted URLs with nng_url_parse().
Applications may access individual fields, but must not free or alter them, as the underlying memory is managed by the library.
The fields are as follows:
u_rawurl
u_scheme
u_userinfo
u_host
u_hostname
u_port
u_path
u_query
u_fragment
u_requri
Note
Other fields may also be present, but only those documented here are safe for application use.
Tip
More information about Universal Resource Locators can be found in
RFC 3986 <https://tools.ietf.org/html/rfc3986>.
SEE ALSO¶
2025-02-02 |