public string contentType ;

描述

确定将使用出站 HTTP 请求传输的默认 Content-Type 标头。

如果父 UnityWebRequest 没有设置自定义 Content-Type 标头,那么该属性的值将用于确定 HTTP 请求 Content-Type 标头的值。

“注意”:如果父 UnityWebRequest 设置了自定义 Content-Type 标头,系统将忽略此属性的值。如果此属性是 null 或空字符串,且父 UnityWebRequest 没有自定义 Content-Type 标头,系统将指定一个默认 Content-Type(通常为 application/octet-stream)。

默认值:null