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”。

适用于