Share via


uri_builder::set_query Method

Set the query component of the URI.

uri_builder & set_query(
   const utility::string_t &query,
   bool do_encoding = false
);

Parameters

  • query
    Query as a decoded string.

  • do_encoding
    Specify whether 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