evhttp_uriencode

As evhttp_encode_uri, but if 'size' is nonnegative, treat the string as being 'size' bytes long. This allows you to encode strings that may contain 0-valued bytes.

The returned string must be freed by the caller.

@param str an unencoded string @param size the length of the string to encode, or -1 if the string is NUL-terminated @param space_to_plus if true, space characters in 'str' are encoded as +, not %20. @return a newly allocate URI-encoded string, or NULL on failure.

extern (C) nothrow
char*
evhttp_uriencode
(
const(char)* str
,,)

Meta