data Interaction = Interaction {
itrConfig :: !Config
+ , itrLocalPort :: !PortNumber
, itrRemoteAddr :: !SockAddr
, itrRemoteCert :: !(Maybe X509)
, itrResourcePath :: !(Maybe [String])
defaultPageContentType = C8.pack "application/xhtml+xml"
-newInteraction :: Config -> SockAddr -> Maybe X509 -> Maybe Request -> IO Interaction
-newInteraction !conf !addr !cert !req
+newInteraction :: Config -> PortNumber -> SockAddr -> Maybe X509 -> Maybe Request -> IO Interaction
+newInteraction !conf !port !addr !cert !req
= do request <- newTVarIO req
responce <- newTVarIO Response {
resVersion = HttpVersion 1 1
return Interaction {
itrConfig = conf
+ , itrLocalPort = port
, itrRemoteAddr = addr
, itrRemoteCert = cert
, itrResourcePath = Nothing