< Previous by Date Date Index Next by Date >
  Thread Index Next in Thread >

[reSIProcate] Character Escaping


I merged the character escaping logic from my branch. It is controlled by HANDLE_CHARACTER_ESCAPING which is currently defined(on by default) in Uri.cxx.  We can do more work to make this even faster, but is necessary for proxies and should always be on.

 

There is a new method in Data for escaping to a stream:

 

template<class Predicate> std::ostream&

Data::escapeToStream(std::ostream& str, Predicate shouldEscape) const

 

There is also logic to handle embedded quotes in a NameAddr; this is off by default. Define HANDLE_EMBEDDED_QUOTES_DNAME in NameAddr.cxx

 

-Derek