SpaceWizards.HttpListener 0.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package SpaceWizards.HttpListener --version 0.1.0                
NuGet\Install-Package SpaceWizards.HttpListener -Version 0.1.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SpaceWizards.HttpListener" Version="0.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SpaceWizards.HttpListener --version 0.1.0                
#r "nuget: SpaceWizards.HttpListener, 0.1.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SpaceWizards.HttpListener as a Cake Addin
#addin nuget:?package=SpaceWizards.HttpListener&version=0.1.0

// Install SpaceWizards.HttpListener as a Cake Tool
#tool nuget:?package=SpaceWizards.HttpListener&version=0.1.0                

SpaceWizards.HttpListener

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:

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on SpaceWizards.HttpListener:

Repository Stars
space-wizards/RobustToolbox
Robust multiplayer game engine, used by Space Station 14
Version Downloads Last updated
0.2.0 213 7/14/2024
0.1.1 313,405 6/16/2024
0.1.0 1,035,358 4/14/2022