mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Add HTTPMessage::toString and family
This commit is contained in:
@@ -72,3 +72,15 @@ String HTTPHeaders::operator[] (String const& field) const
|
||||
{
|
||||
return get (field);
|
||||
}
|
||||
|
||||
String HTTPHeaders::toString () const
|
||||
{
|
||||
String s;
|
||||
for (int i = 0; i < m_fields.size (); ++i)
|
||||
{
|
||||
HTTPField const field (at(i));
|
||||
s << field.name() << ": " << field.value() << newLine;
|
||||
}
|
||||
return s;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user