Mercurial > hgrepos > Python2 > PyMuPDF
comparison mupdf-source/thirdparty/curl/docs/libcurl/curl_mime_headers.3 @ 2:b50eed0cc0ef upstream
ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4.
The directory name has changed: no version number in the expanded directory now.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 15 Sep 2025 11:43:07 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1:1d09e1dec1d9 | 2:b50eed0cc0ef |
|---|---|
| 1 .\" ************************************************************************** | |
| 2 .\" * _ _ ____ _ | |
| 3 .\" * Project ___| | | | _ \| | | |
| 4 .\" * / __| | | | |_) | | | |
| 5 .\" * | (__| |_| | _ <| |___ | |
| 6 .\" * \___|\___/|_| \_\_____| | |
| 7 .\" * | |
| 8 .\" * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al. | |
| 9 .\" * | |
| 10 .\" * This software is licensed as described in the file COPYING, which | |
| 11 .\" * you should have received as part of this distribution. The terms | |
| 12 .\" * are also available at https://curl.haxx.se/docs/copyright.html. | |
| 13 .\" * | |
| 14 .\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell | |
| 15 .\" * copies of the Software, and permit persons to whom the Software is | |
| 16 .\" * furnished to do so, under the terms of the COPYING file. | |
| 17 .\" * | |
| 18 .\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | |
| 19 .\" * KIND, either express or implied. | |
| 20 .\" * | |
| 21 .\" ************************************************************************** | |
| 22 .TH curl_mime_headers 3 "22 August 2017" "libcurl 7.56.0" "libcurl Manual" | |
| 23 .SH NAME | |
| 24 curl_mime_headers - set a mime part's custom headers | |
| 25 .SH SYNOPSIS | |
| 26 .B #include <curl/curl.h> | |
| 27 .sp | |
| 28 .BI "CURLcode curl_mime_headers(curl_mimepart * " part , | |
| 29 .BI "struct curl_slist * " headers ", int " take_ownership ");" | |
| 30 .ad | |
| 31 .SH DESCRIPTION | |
| 32 \fIcurl_mime_headers(3)\fP sets a mime part's custom headers. | |
| 33 | |
| 34 \fIpart\fP is the part's handle to assign the custom headers list to. | |
| 35 | |
| 36 \fIheaders\fP is the head of a list of custom headers; it may be set to NULL | |
| 37 to remove a previously attached custom header list. | |
| 38 | |
| 39 \fItake_ownership\fP: when non-zero, causes the list to be freed upon | |
| 40 replacement or mime structure deletion; in this case the list must not be | |
| 41 freed explicitly. | |
| 42 | |
| 43 Setting a part's custom headers list twice is valid: only the value set by | |
| 44 the last call is retained. | |
| 45 .SH AVAILABILITY | |
| 46 As long as at least one of HTTP, SMTP or IMAP is enabled. Added in 7.56.0. | |
| 47 .SH RETURN VALUE | |
| 48 CURLE_OK or a CURL error code upon failure. | |
| 49 .SH EXAMPLE | |
| 50 .nf | |
| 51 struct curl_slist *headers = NULL; | |
| 52 | |
| 53 headers = curl_slist_append("Custom-Header: mooo", headers); | |
| 54 | |
| 55 /* use these headers, please take ownership */ | |
| 56 curl_mime_headers(part, headers, TRUE); | |
| 57 | |
| 58 /* pass on this data */ | |
| 59 curl_mime_data(part, "12345679", CURL_ZERO_TERMINATED); | |
| 60 | |
| 61 /* set name */ | |
| 62 curl_mime_name(part, "numbers"); | |
| 63 .fi | |
| 64 .SH "SEE ALSO" | |
| 65 .BR curl_mime_addpart "(3)" |
