| 440 | |
| 441 | template <typename BufferClass, typename ...Args> |
| 442 | void writeContent(Args&&... args) { |
| 443 | UInt32 before = _buffer.size(); |
| 444 | BufferClass::Append(_buffer,args ...); |
| 445 | if (_option == VALUE && _onCookie) |
| 446 | _onCookie(_key.c_str(),STR _buffer.data()+before,_buffer.size()-before); |
| 447 | } |
| 448 | |
| 449 | enum Option { |
| 450 | NO = -2, |