语言

HttpRequest.ContentType 属性

定义

获取或设置 HTTP 操作正文的内容类型。

public AdaptiveExpressions.Properties.StringExpression ContentType { get; set; }
member this.ContentType : AdaptiveExpressions.Properties.StringExpression with get, set
Public Property ContentType As StringExpression

属性值

内容类型如“application/json”或“text/plain”。 默认是“application/json”。

适用于