Flurl
Flurl copied to clipboard
PostAsync default content null
Hi, just to inform, why not have it default as null if I want to postAsync with no body.
You mean so you can do PostAsync()
instead of PostAsync(null)
? I'm good with this. Have you confirmed PostAsync(null)
actually sends an empty body and doesn't throw or anything? I'll confirm too when I get to it, but was just curious where this enhancement lies on a scale of "simple" to "dead simple". :)
I'm doing PostAsync (null) in my code, and it works fine.
Ready in prerelease 5: https://www.nuget.org/packages/Flurl.Http/3.0.0-pre5