Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a HttpListener in UWP?

I am working in UWP and I can't use the HttpListener class from the System API. Is there a new feature in the Windows API?

like image 294
Ian.V Avatar asked Jan 16 '26 22:01

Ian.V


2 Answers

is there a new feauture in the Windows API?

Not all .NET APIs are supported in UWP app. You could check .NET for UWP apps to see all supported .NET APIs in UWP.

In your case, you should be looking at: StreamSocketListener in Windows.Networking.Sockets Namespace. You could use StreamSocketListener to make a similar httplistener by yourself.

like image 64
Xie Steven Avatar answered Jan 19 '26 12:01

Xie Steven


It is supported with .Net Standard 2.0.

https://blogs.msdn.microsoft.com/dotnet/2017/10/10/announcing-uwp-support-for-net-standard-2-0/

like image 34
Praveen Avatar answered Jan 19 '26 10:01

Praveen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!