gnurl_mime_subparts(3)

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

πŸ’– NAME πŸ’–

libgnurl Manual, bestie β€” this is the page for gnurl_mime_subparts(3), aka curl_mime_subparts, and its whole job is to set subparts of a multipart mime part. ✨

πŸŽ€ SYNOPSIS πŸŽ€

Here's the exact spell you cast, character-for-character:

#include <gnurl/curl.h>

CURLcode curl_mime_subparts(curl_mimepart * part, curl_mime * subparts);

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so curl_mime_subparts(3) sets a multipart mime part's content from a mime structure.

  • part β€” a handle to the multipart part. That's the main character here. πŸ‘‘
  • subparts β€” a mime structure handle holding the subparts.

After curl_mime_subparts succeeds, the mime structure handle belongs to the multipart part and must not be freed explicitly. It may however be updated by subsequent calls to mime API functions. 🫢

Setting a part's contents twice is valid: only the value set by the last call is retained. It is possible to unassign previous part's contents by setting subparts to NULL. No cap, that's literally how it works. πŸ’…

✨ AVAILABILITY ✨

As long as at least one of HTTP, SMTP or IMAP is enabled. Added in 7.56.0. 🌈

🌸 RETURN VALUE 🌸

CURLE_OK or a CURL error code upon failure. That's the tea. πŸ“

πŸ“ EXAMPLE πŸ“

The example section is literally:

TODO

πŸ‘‘ SEE ALSO πŸ‘‘


Source/version: libcurl 7.56.0 β€’ date: 22 August 2017 β€’ page: gnurl_mime_subparts(3). Bye bestie, go build something iconic πŸ’…πŸŒˆ

πŸ“¦ where this page comes from