libnhttp/nhttp/protocol/http_headerset.hpp
/* unset header by its name. */
unset header by its name.
unset header by its name .
inline bool unset(const std::string& name, bool all = true) {
			int32_t n = 0;
			for (ssize_t i = ssize_t(vec.size()) - 1; i >= 0; --i) {
				auto each = vec[i].get_name();
				if (each.size() == name.size() && 
					!strnicmp(each.c_str(), name.c_str(), each.size())) 
				{
					vec.erase(vec.begin() + i); ++n;
					if (!all)
						break;
				}
			}
			return n > 0;
		}
inline bool unset ( const std :: string & name , bool all = true ) { int32_t n = 0 ; for ( ssize_t i = ssize_t ( vec . size ( ) ) - 1 ; i >= 0 ; -- i ) { auto each = vec [ i ] . get_name ( ) ; if ( each . size ( ) == name . size ( ) && ! strnicmp ( each . c_str ( ) , name . c_str ( ) , each . size ( ) ) ) { vec . erase ( vec . begin ( ) + i ) ; ++ n ; if ( ! all ) break ; } } return n > 0 ; }
unset header by its name.
unset header by its name .