HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulehttpd-shed-0.4.1.2Haskell2010

Network.Shed.Httpd

A trivial web server.

This web server promotes a Request to IO Response function into a local web server. The user can decide how to interpret the requests, and the library is intended for implementing Ajax APIs.

initServerLazy (and assocated refactorings), and Chunking support was written by Henning Thielemann. Handling of POST-based payloads was been written by Brandon Moore. initServerBind support was written by John Van Enk.

  • 3 types
  • 8 values
valueinitServer
  1. :: Int

    The port number

  2. -> (Request -> IO Response)

    The functionality of the Server

  3. -> IO Server

    A token for the Server

#

This server transfers documents as one parcel, using the content-length header.

valueinitServerLazy
  1. :: Int

    Chunk size

  2. -> Int

    The port number

  3. -> (Request -> IO Response)

    The functionality of the Server

  4. -> IO Server

    A token for the Server

#

This server transfers documents in chunked mode and without content-length header. This way you can ship infinitely big documents. It inserts the transfer encoding header for you. The server binds to all interfaces

valueinitServerBind
  1. :: Int

    The port number

  2. -> HostAddress

    The host address

  3. -> (Request -> IO Response)

    The functionality of the Server

  4. -> IO Server

    A token for the Server

#

This server transfers documents as one parcel, using the content-length header, and takes an additional

valueinitServerLazyBind
  1. :: Int

    Chunk size

  2. -> Int

    The port number

  3. -> HostAddress

    The host address

  4. -> (Request -> IO Response)

    The functionality of the Server

  5. -> IO Server

    A token for the Server

#

This server transfers documents in chunked mode and without content-length header. This way you can ship infinitely big documents. It inserts the transfer encoding header for you. The server binds to the specified address.