Flurl icon indicating copy to clipboard operation
Flurl copied to clipboard

PostAsync default content null

Open imtrobin opened this issue 4 years ago • 3 comments

Hi, just to inform, why not have it default as null if I want to postAsync with no body.

imtrobin avatar May 04 '20 09:05 imtrobin

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". :)

tmenier avatar May 07 '20 15:05 tmenier

I'm doing PostAsync (null) in my code, and it works fine.

imtrobin avatar May 09 '20 07:05 imtrobin

Ready in prerelease 5: https://www.nuget.org/packages/Flurl.Http/3.0.0-pre5

tmenier avatar Oct 01 '20 02:10 tmenier