mongoose/docs/c-api/mg_uri.h/mg_assemble_uri.md
Dmitry Frank 3eb4eb8074 Fix mongoose docs generation
PUBLISHED_FROM=331821dcd1f7dc8a94581cd8a9b51aa00a89fddc
2018-02-03 01:20:48 +02:00

704 B

title decl_name symbol_kind signature
mg_assemble_uri() mg_assemble_uri func int mg_assemble_uri(const struct mg_str *scheme, const struct mg_str *user_info, const struct mg_str *host, unsigned int port, const struct mg_str *path, const struct mg_str *query, const struct mg_str *fragment, int normalize_path, struct mg_str *uri);

Assemble URI from parts. Any of the inputs can be NULL or zero-length mg_str.

If normalize_path is true, path is normalized by resolving relative refs.

Result is a heap-allocated string (uri->p must be free()d after use).

Returns 0 on success, -1 on error.