DEV Community

loading...

Discussion on: Truth OR Dare | Let's FUN

winstonpuckett profile image
Winston Puckett

Or is it how do you make a synchronous or async request?

Thread Thread
itsmukulmishra profile image
Mukul Mishra Author

exactly async call

Thread Thread
winstonpuckett profile image
Winston Puckett

Without looking it up, I think it's:

await HttpClient.GetAsync(message);

// And possibly synchronously:
HttpClient.Get(message);
Enter fullscreen mode Exit fullscreen mode

But without looking it up, I'm not sure if Get() is part of the interface 🤔

Thread Thread
itsmukulmishra profile image
Mukul Mishra Author

HttpClient.GetAsync(message)
this one is Async and i also dont think .get() is still operational.