共用方式為


http_request::relative_uri Method

Gets a reference the URI path, query, and fragment part of this request message. This will be appended to the base URI specified at construction of the http_client.

uri relative_uri() const;

Return Value

A string.

Remarks

When the request is the one passed to a listener's handler, the relative URI is the request URI less the listener's path. In all other circumstances, request_uri() and relative_uri() will return the same value.

Requirements

Header: http_msg.h

Namespace: web::http

See Also

Reference

http_request Class