aboutsummaryrefslogtreecommitdiff
path: root/docs/libcurl/curl_mime_type.3
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-09-04 09:20:24 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-09-04 09:20:24 +0200
commit2e4074c953e96cadc3182454fd437f9a348e37ce (patch)
tree7a4ed2cd14735c44bd62b41f95f864c36ec5e3c0 /docs/libcurl/curl_mime_type.3
parentd24c05b9081f7bf38f04f50f10c557eefee40f04 (diff)
docs: curl_mime_*.3 man page formatting edits
Diffstat (limited to 'docs/libcurl/curl_mime_type.3')
-rw-r--r--docs/libcurl/curl_mime_type.313
1 files changed, 7 insertions, 6 deletions
diff --git a/docs/libcurl/curl_mime_type.3 b/docs/libcurl/curl_mime_type.3
index 0c6cd3d6b..6907b9462 100644
--- a/docs/libcurl/curl_mime_type.3
+++ b/docs/libcurl/curl_mime_type.3
@@ -29,15 +29,16 @@ curl_mime_type - set a mime part's content type
.BI "const char * " mimetype ");"
.ad
.SH DESCRIPTION
-curl_mime_type() sets a mime part's content type.
+\fIcurl_mime_type(3)\fP sets a mime part's content type.
\fIpart\fP is the part's handle to assign the content type to.
+
\fImimetype\fP points to the nul-terminated file mime type string; it may be
set to NULL to remove a previously attached mime type.
-The mime type string is copied into the part, thus the associated
-storage may safely be released or reused after call. Setting a part's type
-twice is valid: only the value set by the last call is retained.
+The mime type string is copied into the part, thus the associated storage may
+safely be released or reused after call. Setting a part's type twice is valid:
+only the value set by the last call is retained.
In the absence of a mime type and if needed by the protocol specifications,
a default mime type is determined by the context:
@@ -52,11 +53,11 @@ extension, or application/octet-stream by default.
- For a multipart part, multipart/mixed.
.br
- text/plain in other cases.
-
.SH AVAILABILITY
As long as at least one of HTTP, SMTP or IMAP is enabled. Added in 7.56.0.
.SH RETURN VALUE
CURLE_OK or a CURL error code upon failure.
-
.SH "SEE ALSO"
.BR curl_mime_addpart "(3)"
+.BR curl_mime_name "(3)"
+.BR curl_mime_data "(3)"