File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,9 @@ class AsyncWebHeader {
122
122
String _value;
123
123
124
124
public:
125
+ AsyncWebHeader () = default ;
126
+ AsyncWebHeader (const AsyncWebHeader &) = default ;
127
+
125
128
AsyncWebHeader (const String& name, const String& value): _name(name), _value(value){}
126
129
AsyncWebHeader (const String& data): _name(), _value(){
127
130
if (!data) return ;
@@ -130,10 +133,12 @@ class AsyncWebHeader {
130
133
_name = data.substring (0 , index);
131
134
_value = data.substring (index + 2 );
132
135
}
133
- ~AsyncWebHeader (){}
136
+
137
+ AsyncWebHeader &operator =(const AsyncWebHeader &) = default ;
138
+
134
139
const String& name () const { return _name; }
135
140
const String& value () const { return _value; }
136
- String toString () const { return String ( _name + F (" : " ) + _value + F (" \r\n " ) ); }
141
+ String toString () const { return _name + F (" : " ) + _value + F (" \r\n " ); }
137
142
};
138
143
139
144
/*
You can’t perform that action at this time.
0 commit comments