hgopher-0.1.0.0: Gopher server

Safe HaskellNone

Network.HGopher

Synopsis

Documentation

mainServer :: PortNumber -> (String -> IO GResponse) -> IO ()Source

This function runs the server. Provide a port number and a function to handle requests.

data GResponse Source

Constructors

GItems [(Item, Record)]

A listing

GFile ByteString

A raw response

data Record Source

Constructors

Record