#include <nng/nng.h> #include <nng/supplemental/http/http.h> int nng_http_req_set_uri(nng_http_req *req, const char *uri);
|This documentation is for the TIP (development tree) of NNG and may represent unreleased changes or functionality that is experimental, and is subject to change before release. The latest released version is v1.3.2. See the documentation for v1.3.2 for the most up-to-date information.|
nng_http_req_set_uri - set HTTP request URI
nng_http_req_set_uri() sets the Request-URI associated with
the request req to uri.
The uri should contain precisely the
string that will be sent to the HTTP server in the request, including
any query information or fragment.
A local copy of the uri is made in the request req.
|No validation or canonicalization of the uri is performed.|
This function returns 0 on success, and non-zero otherwise.
Insufficient memory to perform the operation.
No support for HTTP in the library.