StatusExpectationUnion

PackageAxial.HttpClient
Decides which response status codes count as success for a request.

Specification

Kind
Union
Members
6
Examples
0
IsAnySignature
this.IsAny
IsSuccessSignature
this.IsSuccess
IsStatusesSignature
this.IsStatuses
SuccessSignature
Success
StatusesSignature
Statuses Set<int>

Summary

NameSignatureSynopsis
IsAnythis.IsAnyNo description available.
IsSuccessthis.IsSuccessNo description available.
IsStatusesthis.IsStatusesNo description available.
SuccessSuccessAny status in the 200-299 range succeeds.
StatusesStatuses SetOnly the listed statuses succeed.
AnyAnyEvery status succeeds; the caller inspects the status explicitly.

IsAny

this.IsAny
Member

Returns

bool

IsSuccess

this.IsSuccess
Member

Returns

bool

IsStatuses

this.IsStatuses
Member

Returns

bool

Success

Success
Member
Any status in the 200-299 range succeeds. This is the default.

Returns

unit

Statuses

Statuses Set<int>
Member
Only the listed statuses succeed.

Parameters

NameTypeDescription
ItemSet<int>

Returns

unit

Any

Any
Member
Every status succeeds; the caller inspects the status explicitly.

Returns

unit