webserver-0.2.0: HTTP server library

Network.Web.Utils

Description

Utility functions.

Synopsis

Documentation

uriHostName :: URI -> StringSource

Getting a hostname from URI.

toURLwoPort :: URI -> StringSource

Making a URL string from URI without port.

data TCPInfo Source

TCP connection information.

Constructors

TCPInfo 

Fields

myAddr :: HostName

Local IP address

myPort :: ServiceName

Local port number

peerAddr :: HostName

Remote IP address

peerPort :: ServiceName

Remote port number

Instances

getTCPInfo :: Socket -> IO TCPInfoSource

Getting TCP connection information.