WebApplicationFactoryClientOptions.AllowAutoRedirect 属性

定义

获取或设置通过调用 CreateClient(WebApplicationFactoryClientOptions) 创建的实例是否HttpClient应自动遵循重定向响应。 默认值为 true

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

属性值

适用于