#include <HTTP.h>
Public Types | |
typedef uint64_t | FragOffset |
Type of offset for a fragment. | |
Public Member Functions | |
HTTPCacheAlt () | |
void | copy (HTTPCacheAlt *to_copy) |
void | copy_frag_offsets_from (HTTPCacheAlt *src) |
void | destroy () |
Data Fields | |
uint32_t | m_magic |
int32_t | m_writeable |
int32_t | m_unmarshal_len |
int32_t | m_id |
int32_t | m_rid |
int32_t | m_object_key [4] |
int32_t | m_object_size [2] |
HTTPHdr | m_request_hdr |
HTTPHdr | m_response_hdr |
time_t | m_request_sent_time |
time_t | m_response_received_time |
int | m_frag_offset_count |
# of fragment offsets in this alternate. | |
FragOffset * | m_frag_offsets |
Table of fragment offsets. | |
FragOffset | m_integral_frag_offsets [N_INTEGRAL_FRAG_OFFSETS] |
Integral fragment offset table. | |
RefCountObj * | m_ext_buffer |
Static Public Attributes | |
static int const | N_INTEGRAL_FRAG_OFFSETS = 4 |
# of fragment offsets built in to object. |
Definition at line 1292 of file HTTP.h.
typedef uint64_t HTTPCacheAlt::FragOffset |
HTTPCacheAlt::HTTPCacheAlt | ( | ) |
Definition at line 1724 of file HTTP.cc.
References m_object_key, and m_object_size.
void HTTPCacheAlt::copy | ( | HTTPCacheAlt * | to_copy | ) |
Definition at line 1759 of file HTTP.cc.
References HTTPHdr::copy(), copy_frag_offsets_from(), m_id, m_magic, m_object_key, m_object_size, m_request_hdr, m_request_sent_time, m_response_hdr, m_response_received_time, m_rid, m_unmarshal_len, and HTTPHdr::valid().
Referenced by HTTPInfo::copy().
void HTTPCacheAlt::copy_frag_offsets_from | ( | HTTPCacheAlt * | src | ) |
Definition at line 1788 of file HTTP.cc.
References ats_malloc(), m_frag_offset_count, m_frag_offsets, m_integral_frag_offsets, memcpy, and N_INTEGRAL_FRAG_OFFSETS.
Referenced by copy(), and HTTPInfo::copy_frag_offsets_from().
void HTTPCacheAlt::destroy | ( | ) |
Definition at line 1742 of file HTTP.cc.
References ats_free(), CACHE_ALT_MAGIC_ALIVE, HdrHeapSDKHandle::destroy(), httpCacheAltAllocator, ink_assert, m_frag_offset_count, m_frag_offsets, m_integral_frag_offsets, m_magic, m_request_hdr, m_response_hdr, and m_writeable.
Referenced by HTTPInfo::destroy().
Definition at line 1344 of file HTTP.h.
Referenced by HTTPInfo::destroy(), HTTPInfo::marshal(), and HTTPInfo::set_buffer_reference().
# of fragment offsets in this alternate.
Definition at line 1323 of file HTTP.h.
Referenced by cache_bc::HTTPInfo_v21::copy_and_upgrade_unmarshalled_to_v23(), copy_frag_offsets_from(), destroy(), HTTPInfo::get_frag_offset_count(), HTTPInfo::marshal(), HTTPInfo::marshal_length(), HTTPInfo::push_frag_offset(), and HTTPInfo::unmarshal().
Table of fragment offsets.
Definition at line 1331 of file HTTP.h.
Referenced by cache_bc::HTTPInfo_v21::copy_and_upgrade_unmarshalled_to_v23(), copy_frag_offsets_from(), destroy(), HTTPInfo::get_frag_table(), HTTPInfo::marshal(), HTTPInfo::push_frag_offset(), and HTTPInfo::unmarshal().
int32_t HTTPCacheAlt::m_id |
Definition at line 1309 of file HTTP.h.
Referenced by copy(), HTTPInfo::id_get(), and HTTPInfo::id_set().
Integral fragment offset table.
Definition at line 1335 of file HTTP.h.
Referenced by cache_bc::HTTPInfo_v21::copy_and_upgrade_unmarshalled_to_v23(), copy_frag_offsets_from(), destroy(), HTTPInfo::marshal(), HTTPInfo::marshal_length(), HTTPInfo::push_frag_offset(), and HTTPInfo::unmarshal().
uint32_t HTTPCacheAlt::m_magic |
Definition at line 1299 of file HTTP.h.
Referenced by HTTPInfo::check_marshalled(), copy(), destroy(), HTTPInfo::get_handle(), HTTPInfo::marshal(), CacheVC::openReadStartHead(), HTTPInfo::set_buffer_reference(), and HTTPInfo::unmarshal().
int32_t HTTPCacheAlt::m_object_key[4] |
Definition at line 1312 of file HTTP.h.
Referenced by HTTPInfo::compare_object_key(), copy(), HTTPCacheAlt(), HTTPInfo::object_key_get(), and HTTPInfo::object_key_set().
int32_t HTTPCacheAlt::m_object_size[2] |
Definition at line 1313 of file HTTP.h.
Referenced by copy(), HTTPCacheAlt(), HTTPInfo::object_size_get(), and HTTPInfo::object_size_set().
Definition at line 1315 of file HTTP.h.
Referenced by HTTPInfo::check_marshalled(), copy(), cache_bc::HTTPInfo_v21::copy_and_upgrade_unmarshalled_to_v23(), destroy(), HTTPInfo::marshal(), HTTPInfo::marshal_length(), HTTPInfo::request_get(), HTTPInfo::request_set(), HTTPInfo::request_url_get(), and HTTPInfo::unmarshal().
Definition at line 1318 of file HTTP.h.
Referenced by copy(), HTTPInfo::request_sent_time_get(), and HTTPInfo::request_sent_time_set().
Definition at line 1316 of file HTTP.h.
Referenced by HTTPInfo::check_marshalled(), copy(), cache_bc::HTTPInfo_v21::copy_and_upgrade_unmarshalled_to_v23(), destroy(), HTTPInfo::marshal(), HTTPInfo::marshal_length(), HTTPInfo::response_get(), HTTPInfo::response_set(), and HTTPInfo::unmarshal().
Definition at line 1319 of file HTTP.h.
Referenced by copy(), HTTPInfo::response_received_time_get(), and HTTPInfo::response_received_time_set().
int32_t HTTPCacheAlt::m_rid |
Definition at line 1310 of file HTTP.h.
Referenced by copy(), HTTPInfo::rid_get(), and HTTPInfo::rid_set().
int32_t HTTPCacheAlt::m_unmarshal_len |
Definition at line 1307 of file HTTP.h.
Referenced by copy(), HTTPInfo::get_handle(), HTTPInfo::marshal(), and HTTPInfo::unmarshal().
int32_t HTTPCacheAlt::m_writeable |
Definition at line 1306 of file HTTP.h.
Referenced by HTTPInfo::check_marshalled(), HTTPInfo::copy(), HTTPInfo::destroy(), destroy(), HTTPInfo::marshal(), and HTTPInfo::unmarshal().
int const HTTPCacheAlt::N_INTEGRAL_FRAG_OFFSETS = 4 [static] |
# of fragment offsets built in to object.
Definition at line 1333 of file HTTP.h.
Referenced by cache_bc::HTTPInfo_v21::copy_and_upgrade_unmarshalled_to_v23(), copy_frag_offsets_from(), HTTPInfo::marshal(), HTTPInfo::marshal_length(), HTTPInfo::push_frag_offset(), and HTTPInfo::unmarshal().