on master help sign in
remoteHost is SockAddr
commit0e5abc583c622f332102d82070dd1c37267eb260 authorMichael <michael@snoyman.com> dateWed 5 Jan 2011, 23:31 (16 years ago) parent2be8986
2 files changed+3−1
Network/Wai.hs+2−1 wai.cabal+1
Network/Wai.hs+2−1
@@ -82,6 +82,7 @@ import qualified Data.Enumerator as E
8282import Data.Enumerator.IO (enumFile)
8383import Blaze.ByteString.Builder (Builder, fromByteString, fromLazyByteString)
8484import Data.Data (Data)
85+import Network.Socket (SockAddr)
8586
8687-- | HTTP request method. Since the HTTP protocol allows arbitrary request
8788-- methods, we leave this open as a 'B.ByteString'. Please note the request
@@ -213,7 +214,7 @@ data Request = Request
213214 -- server-dependant.
214215 , errorHandler :: String -> IO ()
215216 -- | The client\'s host information.
216− , remoteHost :: B.ByteString
217+ , remoteHost :: SockAddr
217218 }
218219 deriving Typeable
219220
wai.cabal+1
@@ -21,5 +21,6 @@ Library
2121 , bytestring >= 0.9 && < 0.10
2222 , blaze-builder >= 0.2 && < 0.3
2323 , enumerator >= 0.4 && < 0.5
24+ , network >= 2.2 && < 2.4
2425 Exposed-modules: Network.Wai
2526 ghc-options: -Wall