From 2e4074c953e96cadc3182454fd437f9a348e37ce Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 4 Sep 2017 09:20:24 +0200 Subject: docs: curl_mime_*.3 man page formatting edits --- docs/libcurl/curl_mime_type.3 | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'docs/libcurl/curl_mime_type.3') 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)" -- cgit v1.2.3