Home

Traffic Server Software Developers Kit

Alternate Selection Functions

INKHttpAltInfoCachedReqGet

Gets the cached request header from the specified alternate information.

Prototype

INKReturnCode INKHttpAltInfoCachedReqGet (INKHttpAltInfo infop, INKMBuffer *bufp, INKMLoc *offset)

Description

Retrieves the cached client request header from the alternate information infop.

Call from within HTTP_SELECT_ALT_HOOK.

Returns

INK_SUCCESS if the operation completes successfully.

INK_ERROR if an error occurs.

INKHttpAltInfoCachedRespGet

Gets the cached response header from the specified alternate information.

Prototype

INKReturnCode INKHttpAltInfoCachedRespGet (INKHttpAltInfo infop, INKMBuffer *bufp, INKMLoc *offset)

Description

Retrieves the cached client response header from the alternate information infop.

Call from within HTTP_SELECT_ALT_HOOK.

Returns

INK_SUCCESS if the operation completes successfully.

INK_ERROR if an error occurs.

INKHttpAltInfoClientReqGet

Gets the client request header from the specified alternate information.

Prototype

INKReturnCode INKHttpAltInfoClientReqGet (INKHttpAltInfo infop, INKMBuffer *bufp, INKMLoc *offset)

Description

Retrieves the client request header from the alternate information infop.

Call from within HTTP_SELECT_ALT_HOOK.

Returns

INK_SUCCESS if the operation completes successfully.

INK_ERROR if an error occurrs.

INKHttpAltInfoQualitySet

Sets the quality value for the specified alternate information.

Prototype

INKReturnCode INKHttpAltInfoQualitySet (INKHttpAltInfo infop, float quality)

Description

Sets the quality value for this alternate information infop.

Call from within HTTP_SELECT_ALT_HOOK.

Returns

INK_SUCCESS if the operation completes successfully.

INK_ERROR if an error occurs.