GNURLOPT_TRAILERDATA(3)

πŸ“¦ version 7.72.0, in nixos 26.05, nixpkgs unstable

πŸ¦‹ GNURLOPT_TRAILERDATA(3) πŸ¦‹

okay so bestie, this is the GNURLOPT_TRAILERDATA(3) page from the curl_easy_setopt options manual, and we're gonna get you comfy with it β€” no skips, no cap πŸ’…

🌸 NAME 🌸

  • CURLOPT_TRAILERDATA β€” Custom pointer passed to the trailing headers callback. that's the whole name, iconic.

✨ SYNOPSIS ✨

#include <curl.h>

CURLcode curl_easy_setopt(CURL *handle, CURLOPT_TRAILERDATA, void
       *userdata);

πŸ’– DESCRIPTION πŸ’–

This is literally a data pointer that gets passed to the HTTP trailer callback function. that's its job 🫢

πŸŽ€ DEFAULT πŸŽ€

The default is NULL, periodt.

🌈 PROTOCOLS 🌈

HTTP β€” that's the protocol vibe here.

πŸ“ EXAMPLE πŸ“

/* Assuming we have a CURL handle in the hndl variable. */

struct MyData data;

curl_easy_setopt(hndl, CURLOPT_TRAILERDATA, &data);

A more complete example can be found in examples/http_trailers.html ✨

πŸ‘‘ AVAILABILITY πŸ‘‘

This option was added in curl 7.64.0 and is present if HTTP support is enabled. noted, bestie πŸ’œ

πŸ”₯ SEE ALSO πŸ”₯


that's the whole page, bestie 🫢 source/version: libcurl 7.64.0 Β· date: 14 Aug 2018 Β· page: GNURLOPT_TRAILERDATA(3) β€” bye πŸ’–

πŸ“¦ where this page comes from