TSFetchCreate - traffic Server asynchronous Fetch API
Contents
Copyright
2025, dev@trafficserver.apache.org
9.2 May 22, 2025 TSFETCHCREATE(3ts)
Description
Traffic Server provides a number of routines for fetching resources asynchronously. These API are useful
to support a number of use cases that may involve sideways calls, while handling the client request. Some
typical examples include centralized rate limiting framework, database lookups for login/authentication,
refreshing configs in the background asynchronously, ESI etc.
Name
TSFetchCreate - traffic Server asynchronous Fetch API
Synopsis
#include <ts/ts.h>
voidTSFetchPages(TSFetchUrlParams_t*)TSFetchSMTSFetchUrl(constchar*,int,sockaddrconst*,TSCont,TSFetchWakeUpOptions,TSFetchEvent)voidTSFetchFlagSet(TSFetchSM,int)TSFetchSMTSFetchCreate(TSCont,constchar*,constchar*,constchar*,structsockaddrconst*,int)voidTSFetchHeaderAdd(TSFetchSM,constchar*,int,constchar*,int)voidTSFetchWriteData(TSFetchSM,constvoid*,size_t)ssize_tTSFetchReadData(TSFetchSM,void*,size_t)voidTSFetchLaunch(TSFetchSM)voidTSFetchDestroy(TSFetchSM)voidTSFetchUserDataSet(TSFetchSM,void*)void*TSFetchUserDataGet(TSFetchSM)TSMBufferTSFetchRespHdrMBufGet(TSFetchSM)TSMLocTSFetchRespHdrMLocGet(TSFetchSM)