HttpWaitStrategyOptions Class
Options of the wait strategy created by Wait.ForHttp.
public sealed class HttpWaitStrategyOptions : PollingWaitStrategyOptions- Inheritance
PollingWaitStrategyOptionsHttpWaitStrategyOptions
Constructors
| Name | Description |
|---|---|
| HttpWaitStrategyOptions() |
HttpWaitStrategyOptions()
HttpWaitStrategyOptions.cspublic HttpWaitStrategyOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| Method | Gets or sets the HTTP method of the request. The default value is HttpMethod.Get. |
| RequestTimeout | Gets or sets the time a single request has to complete before it counts as a failed check. The default value is 5 seconds. |
| ResponseBodyPredicate | Gets or sets a predicate the response body must satisfy, in addition to the status code. When null, the body is not read. |
| StatusCodes | Gets the status codes that mean the container is ready. When the collection is empty, any 2xx status code does. |
| UseHttps | Gets or sets a value indicating whether the request uses HTTPS instead of HTTP. |
| ValidateServerCertificate | 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. |
Gets or sets the HTTP method of the request. The default value is HttpMethod.Get.
public HttpMethod Method { get; set; }Property value
RequestTimeout
HttpWaitStrategyOptions.csResponseBodyPredicate
HttpWaitStrategyOptions.csGets or sets a predicate the response body must satisfy, in addition to the status code. When null, the body is not read.
Property value
StatusCodes
HttpWaitStrategyOptions.csGets the status codes that mean the container is ready. When the collection is empty, any 2xx status code does.
public ICollection<HttpStatusCode> StatusCodes { get; }