| 37 | } |
| 38 | |
| 39 | String HttpHeaderFields::toString(HttpHeaderFieldName name) const |
| 40 | { |
| 41 | if(name == HTTP_HEADER_UNKNOWN) { |
| 42 | return nullptr; |
| 43 | } |
| 44 | |
| 45 | if(name < HTTP_HEADER_CUSTOM) { |
| 46 | return fieldNameStrings[unsigned(name) - 1]; |
| 47 | } |
| 48 | |
| 49 | return customFieldNames[unsigned(name) - unsigned(HTTP_HEADER_CUSTOM)]; |
| 50 | } |
| 51 | |
| 52 | String HttpHeaderFields::toString(HttpHeaderFieldName name, const String& value) const |
| 53 | { |