#include <StatPages.h>
Public Member Functions | |
void | init () |
inkcoreapi void | register_http (const char *hostname, StatPagesFunc func) |
Action * | handle_http (Continuation *cont, HTTPHdr *header) |
bool | is_stat_page (URL *url) |
bool | is_cache_inspector_page (URL *url) |
Data Fields | |
int | m_enabled |
Definition at line 85 of file StatPages.h.
Action * StatPagesManager::handle_http | ( | Continuation * | cont, | |
HTTPHdr * | header | |||
) |
Definition at line 68 of file StatPages.cc.
References Continuation::handleEvent(), URL::host_get(), is_cache_inspector_page(), is_stat_page(), m_enabled, memcpy, module, n_stat_pages, ptr_len_cmp(), STAT_PAGE_FAILURE, stat_pages, unescapifyStr(), and HTTPHdr::url_get().
Referenced by HttpSM::set_next_state().
void StatPagesManager::init | ( | void | ) |
Definition at line 52 of file StatPages.cc.
References m_enabled, and REC_EstablishStaticConfigInt32.
Referenced by main().
bool StatPagesManager::is_cache_inspector_page | ( | URL * | url | ) |
Definition at line 122 of file StatPages.cc.
References URL::host_get(), memcpy, and unescapifyStr().
Referenced by handle_http().
bool StatPagesManager::is_stat_page | ( | URL * | url | ) |
Definition at line 98 of file StatPages.cc.
References URL::host_get(), m_enabled, memcpy, and unescapifyStr().
Referenced by handle_http(), and HttpTransact::handle_internal_request().
void StatPagesManager::register_http | ( | const char * | hostname, | |
StatPagesFunc | func | |||
) |
Definition at line 58 of file StatPages.cc.
References ats_malloc(), ink_release_assert, MAX_STAT_PAGES, n_stat_pages, and stat_pages.
Referenced by http_pages_init(), initialize_all_global_stats(), Cache::open_done(), UnixNetProcessor::start(), HostDBProcessor::start(), and testpage_callback_init().
Definition at line 95 of file StatPages.h.
Referenced by handle_http(), init(), and is_stat_page().