| 205 | } |
| 206 | |
| 207 | void |
| 208 | HttpBodyFactory::dump_template_tables(FILE *fp) |
| 209 | { |
| 210 | lock(); |
| 211 | if (table_of_sets) { |
| 212 | for (const auto &it1 : *table_of_sets.get()) { |
| 213 | HttpBodySet *body_set = static_cast<HttpBodySet *>(it1.second); |
| 214 | if (body_set) { |
| 215 | fprintf(fp, "set %s: name '%s', lang '%s', charset '%s'\n", it1.first.c_str(), body_set->set_name, |
| 216 | body_set->content_language, body_set->content_charset); |
| 217 | |
| 218 | /////////////////////////////////////////// |
| 219 | // loop over body-types->body hash table // |
| 220 | /////////////////////////////////////////// |
| 221 | |
| 222 | ink_assert(body_set->is_sane()); |
| 223 | if (body_set->table_of_pages) { |
| 224 | for (const auto &it2 : *body_set->table_of_pages.get()) { |
| 225 | fprintf(fp, " %-30s: %" PRId64 " bytes\n", it2.first.c_str(), it2.second->byte_count); |
| 226 | } |
| 227 | } |
| 228 | } |
| 229 | } |
| 230 | } |
| 231 | |
| 232 | unlock(); |
| 233 | } |
| 234 | |
| 235 | //////////////////////////////////////////////////////////////////////// |
| 236 | // |