ngx_str_t likely does not contain UTF-8, so converting it from/to UTF-8 strings is expensive and useless. from_bytes() and as_bytes() should be a more appropriate interface.
At some point in the future I intend to drop the String/&str conversion methods, as these aren't safe.
ngx_str_t
likely does not contain UTF-8, so converting it from/to UTF-8 strings is expensive and useless.from_bytes()
andas_bytes()
should be a more appropriate interface.At some point in the future I intend to drop the
String
/&str
conversion methods, as these aren't safe.