Home

Traffic Server Software Developers Kit

HTTP Functions

Hook Functions

INKHttpHookAdd

Adds an HTTP hook.

Prototype

INKReturnCode INKHttpHookAdd (INKHttpHookId id, INKCont contp)

Description

Adds contp to the end of the list of global HTTP hooks specified by id. Since INKHttpHookAdd adds contp to a global list, this function is only safe to call from the plugin initialization routine.

Returns

INK_SUCCESS if the hook is successfully added.

INK_ERROR if the hook is not added.