| 3698 | /* HTTP hooks */ |
| 3699 | |
| 3700 | void |
| 3701 | TSHttpHookAdd(TSHttpHookID id, TSCont contp) |
| 3702 | { |
| 3703 | INKContInternal *icontp; |
| 3704 | sdk_assert(sdk_sanity_check_continuation(contp) == TS_SUCCESS); |
| 3705 | sdk_assert(sdk_sanity_check_hook_id(id) == TS_SUCCESS); |
| 3706 | |
| 3707 | icontp = reinterpret_cast<INKContInternal *>(contp); |
| 3708 | |
| 3709 | TSSslHookInternalID internalId{id}; |
| 3710 | if (internalId.is_in_bounds()) { |
| 3711 | SSLAPIHooks::instance()->append(internalId, icontp); |
| 3712 | } else { // Follow through the regular HTTP hook framework |
| 3713 | http_global_hooks->append(id, icontp); |
| 3714 | } |
| 3715 | } |
| 3716 | |
| 3717 | void |
| 3718 | TSLifecycleHookAdd(TSLifecycleHookID id, TSCont contp) |