.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "TSFETCHCREATE" "3ts" "Apr 16, 2024" "9.2" "Apache Traffic Server" .SH NAME TSFetchCreate \- traffic Server asynchronous Fetch API .SH SYNOPSIS .INDENT 0.0 .INDENT 3.5 .sp .EX #include .EE .UNINDENT .UNINDENT .INDENT 0.0 .TP .B void TSFetchPages(\fI\%TSFetchUrlParams_t\fP*) .UNINDENT .INDENT 0.0 .TP .B \fI\%TSFetchSM\fP TSFetchUrl(const char*, int, sockaddr const*, \fI\%TSCont\fP, \fI\%TSFetchWakeUpOptions\fP, \fI\%TSFetchEvent\fP) .UNINDENT .INDENT 0.0 .TP .B void TSFetchFlagSet(\fI\%TSFetchSM\fP, int) .UNINDENT .INDENT 0.0 .TP .B \fI\%TSFetchSM\fP TSFetchCreate(\fI\%TSCont\fP, const char*, const char*, const char*, struct sockaddr const*, int) .UNINDENT .INDENT 0.0 .TP .B void TSFetchHeaderAdd(\fI\%TSFetchSM\fP, const char*, int, const char*, int) .UNINDENT .INDENT 0.0 .TP .B void TSFetchWriteData(\fI\%TSFetchSM\fP, const void*, size_t) .UNINDENT .INDENT 0.0 .TP .B ssize_t TSFetchReadData(\fI\%TSFetchSM\fP, void*, size_t) .UNINDENT .INDENT 0.0 .TP .B void TSFetchLaunch(\fI\%TSFetchSM\fP) .UNINDENT .INDENT 0.0 .TP .B void TSFetchDestroy(\fI\%TSFetchSM\fP) .UNINDENT .INDENT 0.0 .TP .B void TSFetchUserDataSet(\fI\%TSFetchSM\fP, void*) .UNINDENT .INDENT 0.0 .TP .B void *TSFetchUserDataGet(\fI\%TSFetchSM\fP) .UNINDENT .INDENT 0.0 .TP .B \fI\%TSMBuffer\fP TSFetchRespHdrMBufGet(\fI\%TSFetchSM\fP) .UNINDENT .INDENT 0.0 .TP .B \fI\%TSMLoc\fP TSFetchRespHdrMLocGet(\fI\%TSFetchSM\fP) .UNINDENT .SH DESCRIPTION .sp 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. .SH COPYRIGHT 2024, dev@trafficserver.apache.org .\" Generated by docutils manpage writer. .