Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- data RemoteHost
Documentation
Use RemoteHost
whenever your request handlers need the host or IP address
from which the client issued the HTTP request. The corresponding handlers
receive arguments of type SockAddr
(from Network.Socket
).
Example:
>>>
-- POST /record-ip
>>>
type API = "record-ip" :> RemoteHost :> Post '[] ()
data RemoteHost Source #
Provides access to the host or IP address from which the HTTP request was sent.
Instances
HasLink sub => HasLink (RemoteHost :> sub :: Type) Source # | |
Defined in Servant.Links | |
type MkLink (RemoteHost :> sub :: Type) a Source # | |
Defined in Servant.Links |