HttpWaitStrategyOptions Class

Options of the wait strategy created by Wait.ForHttp.

public sealed class HttpWaitStrategyOptions : PollingWaitStrategyOptions
Inheritance
PollingWaitStrategyOptions HttpWaitStrategyOptions

Constructors

NameDescription
HttpWaitStrategyOptions()

HttpWaitStrategyOptions()

HttpWaitStrategyOptions.cs
public HttpWaitStrategyOptions()

No documentation is available.

Properties

NameDescription
MethodGets or sets the HTTP method of the request. The default value is HttpMethod.Get.
RequestTimeoutGets or sets the time a single request has to complete before it counts as a failed check. The default value is 5 seconds.
ResponseBodyPredicateGets or sets a predicate the response body must satisfy, in addition to the status code. When null, the body is not read.
StatusCodesGets the status codes that mean the container is ready. When the collection is empty, any 2xx status code does.
UseHttpsGets or sets a value indicating whether the request uses HTTPS instead of HTTP.
ValidateServerCertificateGets or sets a value indicating whether the certificate of the server is validated. Set it to false for a container that serves a self-signed certificate. The default value is true.

Gets or sets the HTTP method of the request. The default value is HttpMethod.Get.

public HttpMethod Method { get; set; }

Property value

HttpMethod

Gets or sets the time a single request has to complete before it counts as a failed check. The default value is 5 seconds.

public TimeSpan RequestTimeout { get; set; }

Property value

TimeSpan

ResponseBodyPredicate

HttpWaitStrategyOptions.cs

Gets or sets a predicate the response body must satisfy, in addition to the status code. When null, the body is not read.

public Func<string, bool>? ResponseBodyPredicate { get; set; }

Property value

Func<string, bool>?

Gets the status codes that mean the container is ready. When the collection is empty, any 2xx status code does.

public ICollection<HttpStatusCode> StatusCodes { get; }

Gets or sets a value indicating whether the request uses HTTPS instead of HTTP.

public bool UseHttps { get; set; }

Property value

bool

ValidateServerCertificate

HttpWaitStrategyOptions.cs

Gets or sets a value indicating whether the certificate of the server is validated. Set it to false for a container that serves a self-signed certificate. The default value is true.

public bool ValidateServerCertificate { get; set; }

Property value

bool