Share via


uri::encode_uri Method

Encodes a URI component according to RFC 3986. Note if a full URI is specified instead of an individual URI component all characters not in the unreserved set are escaped.

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

Parameters

  • raw
    The URI as a string.

Return Value

The encoded string.

Requirements

Header: base_uri.h

Namespace: web::http

See Also

Reference

uri Class