TSHttpTxnServerPush - TSHttpTxnServerPush API function
Contents
Copyright
2025, dev@trafficserver.apache.org
9.2 May 22, 2025 TSHTTPTXNSERVERPUSH(3ts)
Description
Push a content to a client with Server Push mechanism.
This API works only if the protocol of a transaction supports Server Push and it is not disabled by the
client. You can call this API without checking whether Server Push is available on the transaction and it
does nothing if Server Push is not available.
This API returns an error if the URL to push is not valid, the client has Server Push disabled, or there
is an error creating the H/2 PUSH_PROMISE frame.
Name
TSHttpTxnServerPush - TSHttpTxnServerPush API function
See Also
TSAPI(3ts),
Synopsis
#include <ts/ts.h>
TSReturnCodeTSHttpTxnServerPush(TSHttpTxntxnp,constchar*url,inturl_len)