contentType
Determines the default Content-Type header which will be transmitted with the outbound HTTP request.
읽는 시간 1분최근 업데이트: 한 달 전
Definition
- Type: Property
- Namespace: UnityEngine.Networking
- Assembly: UnityEngine.UnityWebRequestModule
public string contentType { get; set; }
Remarks
If the parent UnityWebRequest does not have a custom header set, then the value of this property will be used to determine the value of the header for the HTTP request.
Content-TypeContent-TypeNote: If the parent UnityWebRequest has a custom header set, then the value of this property is ignored. If this property is or an empty string, and the parent UnityWebRequest has no custom header, then a default will be assigned (usually ).
Content-TypenullContent-TypeContent-Typeapplication/octet-streamDefault value: .
null