icarus-consulting / Yaapii.Http

C# Library for Http Request
MIT License
7 stars 0 forks source link

Add fallback body classes #34

Closed DFU398 closed 4 years ago

DFU398 commented 4 years ago

Expected Behavior

var body = "";
if(new Body.Exists(response).Value())
{
    body = new Body.Of(response).AsString();
}

can be replaced with the less verbose

var body = new Body.FallbackOf(response).AsString();

Actual Behavior

No *.FallbackOf classes exist.

Mention any other details that might be useful

Steps to reproduce the behavior

The log given by the failure.