uri_builder::set_path Method

Set the path component of the URI.

uri_builder & set_path(
   const utility::string_t &path,
   bool do_encoding = false
);

Parameters

  • path
    Path as a decoded string.

  • do_encoding
    Specify whether to apply URI encoding to the given string.

Return Value

A reference to this uri_builder to support chaining.

Requirements

Header: uri_builder.h

Namespace: web::http

See Also

Reference

uri_builder Class