Embedded HTTP Server?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jon Berry

    Embedded HTTP Server?

    Does the .NET framework provide any type of HTTP server class that I can
    embed in my application?

    Thanks!


  • Jeroen Mostert

    #2
    Re: Embedded HTTP Server?

    Jon Berry wrote:
    Does the .NET framework provide any type of HTTP server class that I can
    embed in my application?
    >
    More or less, in the form of HttpListener, which leverages the Windows
    kernel-mode drive for HTTP (introduced with Windows 2003 and also supported
    on Windows XP SP2).

    HttpListener is rather low-level. If you want to offer service endpoints to
    clients (or you can package your services as such), using WCF's ServiceHost
    is much more convenient.

    --
    J.

    Comment

    • Alberto Poblacion

      #3
      Re: Embedded HTTP Server?

      "Jon Berry" <noway@jose.bla hwrote in message
      news:eNvF9Od5IH A.4908@TK2MSFTN GP04.phx.gbl...
      Does the .NET framework provide any type of HTTP server class that I can
      embed in my application?
      Not the framework itself, but if you search for "Cassini" you will find a
      server that is very similar to the one that Visual Studio starts internally
      when you run a web project on the file system. Free download from Microsoft,
      source code included (if I remember correctly).
      Build web apps and services that run on Windows, Linux, and macOS using C#, HTML, CSS, and JavaScript. Get started for free on Windows, Linux, or macOS.



      Comment

      • Martin Honnen

        #4
        Re: Embedded HTTP Server?

        Jon Berry wrote:
        Does the .NET framework provide any type of HTTP server class that I can
        embed in my application?
        I don't think the .NET framework has a HTTP server class but Cassini,
        http://www.asp.net/downloads/archived/cassini/, is a small web server
        implementation.


        --

        Martin Honnen --- MVP XML

        Comment

        Working...