Mirror of space-wizards/SpaceWizards.HttpListener
Find a file
Pieter-Jan Briers ce3c23aa3a Release: 0.2.0
2024-07-14 18:29:28 +02:00
.idea/.idea.SpaceWizards.HttpListener/.idea Rebrand to SpaceWizards.HttpListener 2022-04-14 22:57:24 +02:00
Common/src/System Managed System.Net.HttpListener as of 21c488a18975f2a7678b77922db9d0ec79f003bc 2020-12-20 23:12:44 +01:00
src Release: 0.2.0 2024-07-14 18:29:28 +02:00
.gitignore Yep, forgot to gitignore build artifacts 2020-12-20 23:28:16 +01:00
LICENSE.TXT Managed System.Net.HttpListener as of 21c488a18975f2a7678b77922db9d0ec79f003bc 2020-12-20 23:12:44 +01:00
README.md Add NuGet badge 2022-04-14 23:45:09 +02:00
RELEASE-NOTES.md Release: 0.2.0 2024-07-14 18:29:28 +02:00
SpaceWizards.HttpListener.sln Improve README, add release notes. 2022-04-14 23:30:00 +02:00

SpaceWizards.HttpListener Nuget

A relatively lightweight and embeddable HTTP server for .NET. SpaceWizards.HttpListener is a maintained, updated, and unprofessionally butchered fork of the managed implementation of System.Net.HttpListener straight out of https://github.com/dotnet/runtime. This means:

  • Will always use the fully managed implementation of HttpListener. On Windows, System.Net.HttpListener uses a different backend than Mac/Linux, namely the original http.sys backend. This functions very differently in behavior and bugs, which is unsuitable for cross-platform apps. Furthermore, binding something like 0.0.0.0:1212 with it requires admin even if a plain TCP socket would be fine otherwise.
  • Bugfixes over the .NET Runtime implementation, which is basically unmaintained short of being kept around for compatibility. The original Mono implementation Mac/Linux HttpListener uses is quite buggy.
  • You may expect some more modern innovations and maybe breaking changes. We're primarily maintaining this for RobustToolbox so there you go.

Release Notes

See RELEASE-NOTES.md.

Examples

Literally any of the tutorials for System.Net.HttpListener will probably do. There are also our usages in Robust: