TSHTTPTXNSERVERPUSH(3ts)
π TSHTTPTXNSERVERPUSH β 3ts
okay bestie, welcome to the Apache Traffic Server corner of the manual, section 3ts, where we talk about TSHttpTxnServerPush π«Ά pull up a chair, this one's short and sweet.
β¨ NAME β¨
TSHttpTxnServerPush β it's the TSHttpTxnServerPush API function, no notes, that's the whole name, slay.
πΈ SYNOPSIS πΈ
#include <ts/ts.h>
TSReturnCode TSHttpTxnServerPush(TSHttpTxn txnp, const char *url, int
url_len)
likeβ¦ look at her. iconic signature. π
π¦ DESCRIPTION π¦
So the vibe here is: you're pushing content to a client using the Server Push mechanism. that's it, that's the job. β¨
Now, important, don't skip this part: this API only works if the protocol of a transaction supports Server Push and it's not disabled by the client. but here's the good news β you can literally just call this API without checking whether Server Push is even available on the transaction, because if it's not available, this function does nothing. no crash, no drama, just silence. she's low maintenance like that. π
But when does she actually throw hands? This API returns an error if:
- the URL to push is not valid π
- the client has Server Push disabled π
- there's an error creating the H/2 PUSH_PROMISE frame π
so yeah, three ways to get an error back, keep those in your notes bestie.
π SEE ALSO π
that's the whole friend group for this one, go read it, iykyk.
π COPYRIGHT π
2026, dev@trafficserver.apache.org
and that's the page fr fr π huge thanks to the Apache Traffic Server crew β this doc is from version 9.2, dated Feb 12, 2026, and the copyright belongs to 2026, dev@trafficserver.apache.org. mwah, bye bestie, go push some content π«Άβ¨π
π¦ where this page comes from
- ubuntu noble: trafficserver-dev 9.2.3+ds-1+deb12u1ubuntu0.1 Β· Apache-2.0
- ubuntu questing: trafficserver-dev 9.2.5+ds-1ubuntu2.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms