Skip to content

carldebilly/Yllibed.HttpServer

Repository files navigation

Yllibed HttpServer

This is a versatile http server designed to be used in mobile/UWP applications.

Last build state (master):

Package Build Nuget
Yllibed.Framework - stable VSTS Build NuGet Status
Yllibed.HttpServer - stable VSTS Build NuGet Status

Quick start-up

  1. First install nuget package:

    	PM> Install-Package Yllibed.HttpServer 
  2. Register a server in your app:

    	var myServer = new HttpServer(8080); // create a web server on port 8080
    	myServer.RegisterHandler(new StaticHandler(""))

What it is

  • Simple web server which can be extended using custom code
  • Integration of http framework like NancyFx

What it is not

  • This HTTP server is not designed for performance or high capacity

Limitations

  • There is no support for HTTP 2.0 (yet) or WebSockets
  • There is no support for HTTPS (TLS)
  • On UWP, you can't connect to the server from the same machine (it's a UWP limitation).

What you can do with it

  • Use it for building a headless Windows IoT app (for SSDP discovery or simply end-user configuration)
  • Use it for remote diagnostics/monitoring on your app

Tips

Opening port on Windows 10 IoT (typically on a Raspberry Pi)

If you want to open "any" port on a Raspberry Pi running Windows 10 IoT, you may need to open a port.

  1. First, connect to your device using powershell:
       Enter-PsSession -ComputerName <device name or ip> -Credential .\Administrator
  2. Add a rule in the firewall to authorize inbound traffic to your application: (example for port 8080)
       netsh advfirewall firewall add rule name="My Application Webserver" dir=in action=allow protocol=TCP localport=8080

About

Simple versatile web service for mobile applications

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages