encodeQueryTo

private fnvoid encodeQueryTo(R)(string s, bool spaceAsPlus, ref R dst) @safe

Write a single query key or value applying percent-encoding and optional `+` mapping.

Parameters

sInput string to encode.
spaceAsPlusIf true, serialize spaces as `+` and literal pluses as %2B.
dstOutput range that receives the encoded bytes.