.\" **************************************************************************
.\"
.TH CURLOPT_TRAILERDATA 3 "14 Aug 2018" "libcurl 7.64.0" "curl_easy_setopt options"
-.SH NAME:
+.SH NAME
CURLOPT_TRAILERDATA \- Custom pointer passed to the trailing headers callback
-.SH SYNOPSIS:
+.SH SYNOPSIS
#include <curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_TRAILERDATA, void *userdata);
.SH DESCRIPTION:
Data pointer to be passed to the HTTP trailer callback function.
-.SH DEFAULT:
+.SH DEFAULT
NULL
-.SH PROTOCOLS:
+.SH PROTOCOLS
HTTP
-.SH EXAMPLE:
+.SH EXAMPLE
.nf
/* Assuming we have a CURL handle in the hndl variable. */
.fi
A more complete example can be found in examples/http_trailers.html
-.SH AVAILABILITY:
+.SH AVAILABILITY
This option was added in curl 7.64.0 and is present if HTTP support is enabled
.SH "SEE ALSO"
.BR CURLOPT_TRAILERFUNCTION "(3), "
.\" **************************************************************************
.\"
.TH CURLOPT_TRAILERFUNCTION 3 "14 Aug 2018" "libcurl 7.64.0" "curl_easy_setopt options"
-.SH NAME:
+.SH NAME
CURLOPT_TRAILERFUNCTION \- Set callback for sending trailing headers
-.SH SYNOPSIS:
+.SH SYNOPSIS
#include <curl.h>
int curl_trailer_callback(struct curl_slist ** list, void *userdata);
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_TRAILERFUNCTION, curl_trailer_callback *func);
-.SH DESCRIPTION:
+.SH DESCRIPTION
Pass a pointer to a callback function.
This callback function will be called once right before sending the final
If you set this option to NULL, then the transfer proceeds as usual
without any interruptions.
-.SH DEFAULT:
+.SH DEFAULT
NULL
-.SH PROTOCOLS:
+.SH PROTOCOLS
HTTP
-.SH EXAMPLE:
+.SH EXAMPLE
#include <curl/curl.h>
static int trailer_cb(struct curl_slist **tr, void *data)
curl_slist_free_all(headers);
}
-.SH AVAILABILITY:
+.SH AVAILABILITY
This option was added in curl 7.64.0 and is present if HTTP support is enabled
.SH "SEE ALSO"
.BR CURLOPT_TRAILERDATA "(3), "