uri::encode_uri 方法

根据 RFC 3986 加密 URI 组件。 请注意,如果指定的是完整的 URL 而非单独的 URI 组件,所有未在非保留集中的字符都将被转义。

_ASYNCRTIMP static utility::string_t __cdecl encode_uri(
   const utility::string_t &raw,
   uri::components::component = components::full_uri
);

参数

  • raw
    作为一个字符串的 URI。

返回值

这些编码的字符串。

要求

**标头:**base_uri.h

**命名空间:**web::http

请参见

参考

uri 类