From 490bc97dbf76fae2a99c8bacd5fd9be332d68b90 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Fri, 2 Feb 2018 10:57:18 -0800 Subject: Add, and document, the url->u_requri member. This member is the value passed in actual HTTP protocol, so it is useful with the function nng_http_req_set_uri(). --- src/core/url.h | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) (limited to 'src/core/url.h') diff --git a/src/core/url.h b/src/core/url.h index b3407277..b96401bd 100644 --- a/src/core/url.h +++ b/src/core/url.h @@ -11,22 +11,11 @@ #ifndef CORE_URL_H #define CORE_URL_H -struct nni_url { - char *u_rawurl; // never NULL - char *u_scheme; // never NULL - char *u_userinfo; // will be NULL if not specified - char *u_host; // including colon and port - char *u_hostname; // name only, will be "" if not specified - char *u_port; // port, will be "" if not specified - char *u_path; // path, will be "" if not specified - char *u_query; // without '?', will be NULL if not specified - char *u_fragment; // without '#', will be NULL if not specified - char *u_rawpath; // includes query and fragment, "" if not specified -}; +#include "core/defs.h" -extern int nni_url_parse(nni_url **, const char *path); -extern void nni_url_free(nni_url *); -extern int nni_url_clone(nni_url **, const nni_url *); +extern int nni_url_parse(nni_url **, const char *path); +extern void nni_url_free(nni_url *); +extern int nni_url_clone(nni_url **, const nni_url *); extern const char *nni_url_default_port(const char *); #endif // CORE_URL_H -- cgit v1.2.3-70-g09d2