NancyFx / Nancy

Lightweight, low-ceremony, framework for building HTTP based services on .Net and Mono
http://nancyfx.org
MIT License
7.15k stars 1.47k forks source link

Docs: Clarify differences between Nancy.Hosting.Self and Nancy.Hosting.Owin.HTTPListener #2952

Open viertaxa opened 5 years ago

viertaxa commented 5 years ago

Prerequisites

Description

I would be extremely appreciative if someone who knows the difference could take some time and add some information to the docs regarding the differences between Nancy.Hosting.Self and the Owin HTTPListener method.

Steps to Reproduce

N/A

System Configuration

N/A

khellang commented 5 years ago

Both use HttpListener underneath. Nancy.Hosting.Self is just a thin Nancy-specific wrapper around it. Microsoft.Owin.HttpListener is based on OWIN, which you can read about elsewhere. In the OWIN model, Nancy is just middleware in a pipeline.