restq icon indicating copy to clipboard operation
restq copied to clipboard

Wrap resource concept.

Open ben-crowhurst opened this issue 8 years ago • 0 comments

Currently we move resource data around via a std::multimap. This has worked to date however we are finding lots of duplicated String::to_string/to_bytes, find... calls.

Reduce duplication with a light-weight wrapper.

Resource resource( const std::multimap< std::string, std::string >& values );
resource.set( "name", string or bytes value );
resource.get( "name" ); //returning string or bytes value.

ben-crowhurst avatar Nov 08 '16 02:11 ben-crowhurst