HostFilteringOptions.AllowEmptyHosts 属性

定义

指示是否允许没有主机的请求。 默认值为 true。

public:
 property bool AllowEmptyHosts { bool get(); void set(bool value); };
public bool AllowEmptyHosts { get; set; }
member this.AllowEmptyHosts : bool with get, set
Public Property AllowEmptyHosts As Boolean

属性值

注解

HTTP/1.0 不需要主机标头。 Http/1.1 需要主机标头,但表示该值可能为空。

适用于