Logo Search packages:      
Sourcecode: poco version File versions  Download package

void Poco::Net::NameValueCollection::set ( const std::string &  name,
const std::string &  value 

Returns the value of the (first) name-value pair with the given name.

Throws a NotFoundException if the name-value pair does not exist.

Definition at line 91 of file NameValueCollection.cpp.

References _map.

Referenced by Poco::Net::HTTPServerConnection::run(), and Poco::Net::MediaType::setParameter().

      Iterator it = _map.find(name);
      if (it != _map.end())
      _map.insert(HeaderMap::value_type(name, value));

Generated by  Doxygen 1.6.0   Back to index