Compartilhar via


uri_builder::set_host Method

Set the host component of the URI.

uri_builder & set_host(
   const utility::string_t &host,
   bool do_encoding = false
);

Parameters

  • host
    Host 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