Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
- Exported types
- Methods
- serverAcceptIostream
- serverAddAuthDomain
- serverAddEarlyHandler
- serverAddHandler
- serverAddWebsocketHandler
- serverDisconnect
- serverGetAsyncContext
- serverGetListener
- serverGetListeners
- serverGetPort
- serverGetUris
- serverIsHttps
- serverListen
- serverListenAll
- serverListenFd
- serverListenLocal
- serverListenSocket
- serverPauseMessage
- serverQuit
- serverRemoveAuthDomain
- serverRemoveHandler
- serverRun
- serverRunAsync
- serverSetSslCertFile
- serverUnpauseMessage
- Properties
- Signals
- newtype Server = Server (ForeignPtr Server)
- class GObject o => ServerK o
- toServer :: ServerK o => o -> IO Server
- noServer :: Maybe Server
- data ServerAcceptIostreamMethodInfo
- serverAcceptIostream :: (MonadIO m, ServerK a, IOStreamK b, SocketAddressK c, SocketAddressK d) => a -> b -> Maybe c -> Maybe d -> m ()
- data ServerAddAuthDomainMethodInfo
- serverAddAuthDomain :: (MonadIO m, ServerK a, AuthDomainK b) => a -> b -> m ()
- data ServerAddEarlyHandlerMethodInfo
- serverAddEarlyHandler :: (MonadIO m, ServerK a) => a -> Maybe Text -> ServerCallback -> m ()
- data ServerAddHandlerMethodInfo
- serverAddHandler :: (MonadIO m, ServerK a) => a -> Maybe Text -> ServerCallback -> m ()
- data ServerAddWebsocketHandlerMethodInfo
- serverAddWebsocketHandler :: (MonadIO m, ServerK a) => a -> Maybe Text -> Maybe Text -> Maybe [Text] -> ServerWebsocketCallback -> m ()
- data ServerDisconnectMethodInfo
- serverDisconnect :: (MonadIO m, ServerK a) => a -> m ()
- data ServerGetAsyncContextMethodInfo
- serverGetAsyncContext :: (MonadIO m, ServerK a) => a -> m (Maybe MainContext)
- data ServerGetListenerMethodInfo
- serverGetListener :: (MonadIO m, ServerK a) => a -> m Socket
- data ServerGetListenersMethodInfo
- serverGetListeners :: (MonadIO m, ServerK a) => a -> m [Socket]
- data ServerGetPortMethodInfo
- serverGetPort :: (MonadIO m, ServerK a) => a -> m Word32
- data ServerGetUrisMethodInfo
- serverGetUris :: (MonadIO m, ServerK a) => a -> m [URI]
- data ServerIsHttpsMethodInfo
- serverIsHttps :: (MonadIO m, ServerK a) => a -> m Bool
- data ServerListenMethodInfo
- serverListen :: (MonadIO m, ServerK a, SocketAddressK b) => a -> b -> [ServerListenOptions] -> m ()
- data ServerListenAllMethodInfo
- serverListenAll :: (MonadIO m, ServerK a) => a -> Word32 -> [ServerListenOptions] -> m ()
- data ServerListenFdMethodInfo
- serverListenFd :: (MonadIO m, ServerK a) => a -> Int32 -> [ServerListenOptions] -> m ()
- data ServerListenLocalMethodInfo
- serverListenLocal :: (MonadIO m, ServerK a) => a -> Word32 -> [ServerListenOptions] -> m ()
- data ServerListenSocketMethodInfo
- serverListenSocket :: (MonadIO m, ServerK a, SocketK b) => a -> b -> [ServerListenOptions] -> m ()
- data ServerPauseMessageMethodInfo
- serverPauseMessage :: (MonadIO m, ServerK a, MessageK b) => a -> b -> m ()
- data ServerQuitMethodInfo
- serverQuit :: (MonadIO m, ServerK a) => a -> m ()
- data ServerRemoveAuthDomainMethodInfo
- serverRemoveAuthDomain :: (MonadIO m, ServerK a, AuthDomainK b) => a -> b -> m ()
- data ServerRemoveHandlerMethodInfo
- serverRemoveHandler :: (MonadIO m, ServerK a) => a -> Text -> m ()
- data ServerRunMethodInfo
- serverRun :: (MonadIO m, ServerK a) => a -> m ()
- data ServerRunAsyncMethodInfo
- serverRunAsync :: (MonadIO m, ServerK a) => a -> m ()
- data ServerSetSslCertFileMethodInfo
- serverSetSslCertFile :: (MonadIO m, ServerK a) => a -> Text -> Text -> m ()
- data ServerUnpauseMessageMethodInfo
- serverUnpauseMessage :: (MonadIO m, ServerK a, MessageK b) => a -> b -> m ()
- data ServerAsyncContextPropertyInfo
- constructServerAsyncContext :: Ptr () -> IO ([Char], GValue)
- getServerAsyncContext :: (MonadIO m, ServerK o) => o -> m (Ptr ())
- serverAsyncContext :: AttrLabelProxy "asyncContext"
- data ServerHttpAliasesPropertyInfo
- clearServerHttpAliases :: (MonadIO m, ServerK o) => o -> m ()
- constructServerHttpAliases :: [Text] -> IO ([Char], GValue)
- getServerHttpAliases :: (MonadIO m, ServerK o) => o -> m (Maybe [Text])
- serverHttpAliases :: AttrLabelProxy "httpAliases"
- setServerHttpAliases :: (MonadIO m, ServerK o) => o -> [Text] -> m ()
- data ServerHttpsAliasesPropertyInfo
- clearServerHttpsAliases :: (MonadIO m, ServerK o) => o -> m ()
- constructServerHttpsAliases :: [Text] -> IO ([Char], GValue)
- getServerHttpsAliases :: (MonadIO m, ServerK o) => o -> m (Maybe [Text])
- serverHttpsAliases :: AttrLabelProxy "httpsAliases"
- setServerHttpsAliases :: (MonadIO m, ServerK o) => o -> [Text] -> m ()
- data ServerInterfacePropertyInfo
- constructServerInterface :: AddressK a => a -> IO ([Char], GValue)
- getServerInterface :: (MonadIO m, ServerK o) => o -> m (Maybe Address)
- serverInterface :: AttrLabelProxy "interface"
- data ServerPortPropertyInfo
- constructServerPort :: Word32 -> IO ([Char], GValue)
- getServerPort :: (MonadIO m, ServerK o) => o -> m Word32
- serverPort :: AttrLabelProxy "port"
- data ServerRawPathsPropertyInfo
- constructServerRawPaths :: Bool -> IO ([Char], GValue)
- getServerRawPaths :: (MonadIO m, ServerK o) => o -> m Bool
- serverRawPaths :: AttrLabelProxy "rawPaths"
- data ServerServerHeaderPropertyInfo
- clearServerServerHeader :: (MonadIO m, ServerK o) => o -> m ()
- constructServerServerHeader :: Text -> IO ([Char], GValue)
- getServerServerHeader :: (MonadIO m, ServerK o) => o -> m (Maybe Text)
- serverServerHeader :: AttrLabelProxy "serverHeader"
- setServerServerHeader :: (MonadIO m, ServerK o) => o -> Text -> m ()
- data ServerSslCertFilePropertyInfo
- constructServerSslCertFile :: Text -> IO ([Char], GValue)
- getServerSslCertFile :: (MonadIO m, ServerK o) => o -> m (Maybe Text)
- serverSslCertFile :: AttrLabelProxy "sslCertFile"
- data ServerSslKeyFilePropertyInfo
- constructServerSslKeyFile :: Text -> IO ([Char], GValue)
- getServerSslKeyFile :: (MonadIO m, ServerK o) => o -> m (Maybe Text)
- serverSslKeyFile :: AttrLabelProxy "sslKeyFile"
- data ServerTlsCertificatePropertyInfo
- constructServerTlsCertificate :: TlsCertificateK a => a -> IO ([Char], GValue)
- getServerTlsCertificate :: (MonadIO m, ServerK o) => o -> m (Maybe TlsCertificate)
- serverTlsCertificate :: AttrLabelProxy "tlsCertificate"
- type ServerRequestAbortedCallback = Message -> ClientContext -> IO ()
- type ServerRequestAbortedCallbackC = Ptr () -> Ptr Message -> Ptr ClientContext -> Ptr () -> IO ()
- data ServerRequestAbortedSignalInfo
- afterServerRequestAborted :: (GObject a, MonadIO m) => a -> ServerRequestAbortedCallback -> m SignalHandlerId
- mkServerRequestAbortedCallback :: ServerRequestAbortedCallbackC -> IO (FunPtr ServerRequestAbortedCallbackC)
- noServerRequestAbortedCallback :: Maybe ServerRequestAbortedCallback
- onServerRequestAborted :: (GObject a, MonadIO m) => a -> ServerRequestAbortedCallback -> m SignalHandlerId
- serverRequestAbortedCallbackWrapper :: ServerRequestAbortedCallback -> Ptr () -> Ptr Message -> Ptr ClientContext -> Ptr () -> IO ()
- serverRequestAbortedClosure :: ServerRequestAbortedCallback -> IO Closure
- type ServerRequestFinishedCallback = Message -> ClientContext -> IO ()
- type ServerRequestFinishedCallbackC = Ptr () -> Ptr Message -> Ptr ClientContext -> Ptr () -> IO ()
- data ServerRequestFinishedSignalInfo
- afterServerRequestFinished :: (GObject a, MonadIO m) => a -> ServerRequestFinishedCallback -> m SignalHandlerId
- mkServerRequestFinishedCallback :: ServerRequestFinishedCallbackC -> IO (FunPtr ServerRequestFinishedCallbackC)
- noServerRequestFinishedCallback :: Maybe ServerRequestFinishedCallback
- onServerRequestFinished :: (GObject a, MonadIO m) => a -> ServerRequestFinishedCallback -> m SignalHandlerId
- serverRequestFinishedCallbackWrapper :: ServerRequestFinishedCallback -> Ptr () -> Ptr Message -> Ptr ClientContext -> Ptr () -> IO ()
- serverRequestFinishedClosure :: ServerRequestFinishedCallback -> IO Closure
- type ServerRequestReadCallback = Message -> ClientContext -> IO ()
- type ServerRequestReadCallbackC = Ptr () -> Ptr Message -> Ptr ClientContext -> Ptr () -> IO ()
- data ServerRequestReadSignalInfo
- afterServerRequestRead :: (GObject a, MonadIO m) => a -> ServerRequestReadCallback -> m SignalHandlerId
- mkServerRequestReadCallback :: ServerRequestReadCallbackC -> IO (FunPtr ServerRequestReadCallbackC)
- noServerRequestReadCallback :: Maybe ServerRequestReadCallback
- onServerRequestRead :: (GObject a, MonadIO m) => a -> ServerRequestReadCallback -> m SignalHandlerId
- serverRequestReadCallbackWrapper :: ServerRequestReadCallback -> Ptr () -> Ptr Message -> Ptr ClientContext -> Ptr () -> IO ()
- serverRequestReadClosure :: ServerRequestReadCallback -> IO Closure
- type ServerRequestStartedCallback = Message -> ClientContext -> IO ()
- type ServerRequestStartedCallbackC = Ptr () -> Ptr Message -> Ptr ClientContext -> Ptr () -> IO ()
- data ServerRequestStartedSignalInfo
- afterServerRequestStarted :: (GObject a, MonadIO m) => a -> ServerRequestStartedCallback -> m SignalHandlerId
- mkServerRequestStartedCallback :: ServerRequestStartedCallbackC -> IO (FunPtr ServerRequestStartedCallbackC)
- noServerRequestStartedCallback :: Maybe ServerRequestStartedCallback
- onServerRequestStarted :: (GObject a, MonadIO m) => a -> ServerRequestStartedCallback -> m SignalHandlerId
- serverRequestStartedCallbackWrapper :: ServerRequestStartedCallback -> Ptr () -> Ptr Message -> Ptr ClientContext -> Ptr () -> IO ()
- serverRequestStartedClosure :: ServerRequestStartedCallback -> IO Closure
Exported types
GObject Server | |
((~) * info (ResolveServerMethod t Server), MethodInfo * info Server p) => IsLabelProxy t (Server -> p) | |
type ParentTypes Server | |
type AttributeList Server | |
type SignalList Server |
Methods
serverAcceptIostream
data ServerAcceptIostreamMethodInfo Source
((~) * signature (b -> Maybe c -> Maybe d -> m ()), MonadIO m, ServerK a, IOStreamK b, SocketAddressK c, SocketAddressK d) => MethodInfo * ServerAcceptIostreamMethodInfo a signature |
serverAcceptIostream :: (MonadIO m, ServerK a, IOStreamK b, SocketAddressK c, SocketAddressK d) => a -> b -> Maybe c -> Maybe d -> m () Source
serverAddAuthDomain
data ServerAddAuthDomainMethodInfo Source
((~) * signature (b -> m ()), MonadIO m, ServerK a, AuthDomainK b) => MethodInfo * ServerAddAuthDomainMethodInfo a signature |
serverAddAuthDomain :: (MonadIO m, ServerK a, AuthDomainK b) => a -> b -> m () Source
serverAddEarlyHandler
data ServerAddEarlyHandlerMethodInfo Source
((~) * signature (Maybe Text -> ServerCallback -> m ()), MonadIO m, ServerK a) => MethodInfo * ServerAddEarlyHandlerMethodInfo a signature |
serverAddEarlyHandler :: (MonadIO m, ServerK a) => a -> Maybe Text -> ServerCallback -> m () Source
serverAddHandler
data ServerAddHandlerMethodInfo Source
((~) * signature (Maybe Text -> ServerCallback -> m ()), MonadIO m, ServerK a) => MethodInfo * ServerAddHandlerMethodInfo a signature |
serverAddHandler :: (MonadIO m, ServerK a) => a -> Maybe Text -> ServerCallback -> m () Source
serverAddWebsocketHandler
data ServerAddWebsocketHandlerMethodInfo Source
((~) * signature (Maybe Text -> Maybe Text -> Maybe [Text] -> ServerWebsocketCallback -> m ()), MonadIO m, ServerK a) => MethodInfo * ServerAddWebsocketHandlerMethodInfo a signature |
serverAddWebsocketHandler :: (MonadIO m, ServerK a) => a -> Maybe Text -> Maybe Text -> Maybe [Text] -> ServerWebsocketCallback -> m () Source
serverDisconnect
data ServerDisconnectMethodInfo Source
((~) * signature (m ()), MonadIO m, ServerK a) => MethodInfo * ServerDisconnectMethodInfo a signature |
serverDisconnect :: (MonadIO m, ServerK a) => a -> m () Source
serverGetAsyncContext
data ServerGetAsyncContextMethodInfo Source
((~) * signature (m (Maybe MainContext)), MonadIO m, ServerK a) => MethodInfo * ServerGetAsyncContextMethodInfo a signature |
serverGetAsyncContext :: (MonadIO m, ServerK a) => a -> m (Maybe MainContext) Source
Deprecated: If you are using soup_server_listen(), etc, thenthe server listens on the thread-default #GMainContext, and thisproperty is ignored.
serverGetListener
data ServerGetListenerMethodInfo Source
((~) * signature (m Socket), MonadIO m, ServerK a) => MethodInfo * ServerGetListenerMethodInfo a signature |
serverGetListener :: (MonadIO m, ServerK a) => a -> m Socket Source
serverGetListeners
data ServerGetListenersMethodInfo Source
((~) * signature (m [Socket]), MonadIO m, ServerK a) => MethodInfo * ServerGetListenersMethodInfo a signature |
serverGetListeners :: (MonadIO m, ServerK a) => a -> m [Socket] Source
serverGetPort
data ServerGetPortMethodInfo Source
((~) * signature (m Word32), MonadIO m, ServerK a) => MethodInfo * ServerGetPortMethodInfo a signature |
serverGetPort :: (MonadIO m, ServerK a) => a -> m Word32 Source
Deprecated: If you are using soup_server_listen(), etc, then usesoup_server_get_uris() to get a list of all listening addresses.
serverGetUris
data ServerGetUrisMethodInfo Source
((~) * signature (m [URI]), MonadIO m, ServerK a) => MethodInfo * ServerGetUrisMethodInfo a signature |
serverGetUris :: (MonadIO m, ServerK a) => a -> m [URI] Source
serverIsHttps
data ServerIsHttpsMethodInfo Source
((~) * signature (m Bool), MonadIO m, ServerK a) => MethodInfo * ServerIsHttpsMethodInfo a signature |
serverIsHttps :: (MonadIO m, ServerK a) => a -> m Bool Source
serverListen
data ServerListenMethodInfo Source
((~) * signature (b -> [ServerListenOptions] -> m ()), MonadIO m, ServerK a, SocketAddressK b) => MethodInfo * ServerListenMethodInfo a signature |
serverListen :: (MonadIO m, ServerK a, SocketAddressK b) => a -> b -> [ServerListenOptions] -> m () Source
serverListenAll
data ServerListenAllMethodInfo Source
((~) * signature (Word32 -> [ServerListenOptions] -> m ()), MonadIO m, ServerK a) => MethodInfo * ServerListenAllMethodInfo a signature |
serverListenAll :: (MonadIO m, ServerK a) => a -> Word32 -> [ServerListenOptions] -> m () Source
serverListenFd
data ServerListenFdMethodInfo Source
((~) * signature (Int32 -> [ServerListenOptions] -> m ()), MonadIO m, ServerK a) => MethodInfo * ServerListenFdMethodInfo a signature |
serverListenFd :: (MonadIO m, ServerK a) => a -> Int32 -> [ServerListenOptions] -> m () Source
serverListenLocal
data ServerListenLocalMethodInfo Source
((~) * signature (Word32 -> [ServerListenOptions] -> m ()), MonadIO m, ServerK a) => MethodInfo * ServerListenLocalMethodInfo a signature |
serverListenLocal :: (MonadIO m, ServerK a) => a -> Word32 -> [ServerListenOptions] -> m () Source
serverListenSocket
data ServerListenSocketMethodInfo Source
((~) * signature (b -> [ServerListenOptions] -> m ()), MonadIO m, ServerK a, SocketK b) => MethodInfo * ServerListenSocketMethodInfo a signature |
serverListenSocket :: (MonadIO m, ServerK a, SocketK b) => a -> b -> [ServerListenOptions] -> m () Source
serverPauseMessage
data ServerPauseMessageMethodInfo Source
((~) * signature (b -> m ()), MonadIO m, ServerK a, MessageK b) => MethodInfo * ServerPauseMessageMethodInfo a signature |
serverPauseMessage :: (MonadIO m, ServerK a, MessageK b) => a -> b -> m () Source
serverQuit
data ServerQuitMethodInfo Source
((~) * signature (m ()), MonadIO m, ServerK a) => MethodInfo * ServerQuitMethodInfo a signature |
serverQuit :: (MonadIO m, ServerK a) => a -> m () Source
Deprecated: When using soup_server_listen(), etc, the server willalways listen for connections, and will process them whenever thethread-default #GMainContext is running.
serverRemoveAuthDomain
data ServerRemoveAuthDomainMethodInfo Source
((~) * signature (b -> m ()), MonadIO m, ServerK a, AuthDomainK b) => MethodInfo * ServerRemoveAuthDomainMethodInfo a signature |
serverRemoveAuthDomain :: (MonadIO m, ServerK a, AuthDomainK b) => a -> b -> m () Source
serverRemoveHandler
data ServerRemoveHandlerMethodInfo Source
((~) * signature (Text -> m ()), MonadIO m, ServerK a) => MethodInfo * ServerRemoveHandlerMethodInfo a signature |
serverRemoveHandler :: (MonadIO m, ServerK a) => a -> Text -> m () Source
serverRun
data ServerRunMethodInfo Source
((~) * signature (m ()), MonadIO m, ServerK a) => MethodInfo * ServerRunMethodInfo a signature |
serverRun :: (MonadIO m, ServerK a) => a -> m () Source
Deprecated: When using soup_server_listen(), etc, the server willalways listen for connections, and will process them whenever thethread-default #GMainContext is running.
serverRunAsync
data ServerRunAsyncMethodInfo Source
((~) * signature (m ()), MonadIO m, ServerK a) => MethodInfo * ServerRunAsyncMethodInfo a signature |
serverRunAsync :: (MonadIO m, ServerK a) => a -> m () Source
Deprecated: When using soup_server_listen(), etc, the server willalways listen for connections, and will process them whenever thethread-default #GMainContext is running.
serverSetSslCertFile
data ServerSetSslCertFileMethodInfo Source
((~) * signature (Text -> Text -> m ()), MonadIO m, ServerK a) => MethodInfo * ServerSetSslCertFileMethodInfo a signature |
serverUnpauseMessage
data ServerUnpauseMessageMethodInfo Source
((~) * signature (b -> m ()), MonadIO m, ServerK a, MessageK b) => MethodInfo * ServerUnpauseMessageMethodInfo a signature |
serverUnpauseMessage :: (MonadIO m, ServerK a, MessageK b) => a -> b -> m () Source
Properties
AsyncContext
data ServerAsyncContextPropertyInfo Source
AttrInfo ServerAsyncContextPropertyInfo | |
type AttrLabel ServerAsyncContextPropertyInfo = "async-context" | |
type AttrGetType ServerAsyncContextPropertyInfo = Ptr () | |
type AttrBaseTypeConstraint ServerAsyncContextPropertyInfo = ServerK | |
type AttrSetTypeConstraint ServerAsyncContextPropertyInfo = * ~ Ptr () | |
type AttrAllowedOps ServerAsyncContextPropertyInfo = (:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag)) |
getServerAsyncContext :: (MonadIO m, ServerK o) => o -> m (Ptr ()) Source
serverAsyncContext :: AttrLabelProxy "asyncContext" Source
HttpAliases
data ServerHttpAliasesPropertyInfo Source
AttrInfo ServerHttpAliasesPropertyInfo | |
type AttrLabel ServerHttpAliasesPropertyInfo = "http-aliases" | |
type AttrGetType ServerHttpAliasesPropertyInfo = Maybe [Text] | |
type AttrBaseTypeConstraint ServerHttpAliasesPropertyInfo = ServerK | |
type AttrSetTypeConstraint ServerHttpAliasesPropertyInfo = * ~ [Text] | |
type AttrAllowedOps ServerHttpAliasesPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ((:) AttrOpTag AttrClear ([] AttrOpTag)))) |
clearServerHttpAliases :: (MonadIO m, ServerK o) => o -> m () Source
serverHttpAliases :: AttrLabelProxy "httpAliases" Source
setServerHttpAliases :: (MonadIO m, ServerK o) => o -> [Text] -> m () Source
HttpsAliases
data ServerHttpsAliasesPropertyInfo Source
AttrInfo ServerHttpsAliasesPropertyInfo | |
type AttrLabel ServerHttpsAliasesPropertyInfo = "https-aliases" | |
type AttrGetType ServerHttpsAliasesPropertyInfo = Maybe [Text] | |
type AttrBaseTypeConstraint ServerHttpsAliasesPropertyInfo = ServerK | |
type AttrSetTypeConstraint ServerHttpsAliasesPropertyInfo = * ~ [Text] | |
type AttrAllowedOps ServerHttpsAliasesPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ((:) AttrOpTag AttrClear ([] AttrOpTag)))) |
clearServerHttpsAliases :: (MonadIO m, ServerK o) => o -> m () Source
serverHttpsAliases :: AttrLabelProxy "httpsAliases" Source
setServerHttpsAliases :: (MonadIO m, ServerK o) => o -> [Text] -> m () Source
Interface
data ServerInterfacePropertyInfo Source
AttrInfo ServerInterfacePropertyInfo | |
type AttrLabel ServerInterfacePropertyInfo = "interface" | |
type AttrGetType ServerInterfacePropertyInfo = Maybe Address | |
type AttrBaseTypeConstraint ServerInterfacePropertyInfo = ServerK | |
type AttrSetTypeConstraint ServerInterfacePropertyInfo = AddressK | |
type AttrAllowedOps ServerInterfacePropertyInfo = (:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ((:) AttrOpTag AttrClear ([] AttrOpTag))) |
serverInterface :: AttrLabelProxy "interface" Source
Port
data ServerPortPropertyInfo Source
AttrInfo ServerPortPropertyInfo | |
type AttrLabel ServerPortPropertyInfo = "port" | |
type AttrGetType ServerPortPropertyInfo = Word32 | |
type AttrBaseTypeConstraint ServerPortPropertyInfo = ServerK | |
type AttrSetTypeConstraint ServerPortPropertyInfo = * ~ Word32 | |
type AttrAllowedOps ServerPortPropertyInfo = (:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag)) |
getServerPort :: (MonadIO m, ServerK o) => o -> m Word32 Source
serverPort :: AttrLabelProxy "port" Source
RawPaths
data ServerRawPathsPropertyInfo Source
AttrInfo ServerRawPathsPropertyInfo | |
type AttrLabel ServerRawPathsPropertyInfo = "raw-paths" | |
type AttrGetType ServerRawPathsPropertyInfo = Bool | |
type AttrBaseTypeConstraint ServerRawPathsPropertyInfo = ServerK | |
type AttrSetTypeConstraint ServerRawPathsPropertyInfo = * ~ Bool | |
type AttrAllowedOps ServerRawPathsPropertyInfo = (:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag)) |
getServerRawPaths :: (MonadIO m, ServerK o) => o -> m Bool Source
serverRawPaths :: AttrLabelProxy "rawPaths" Source
ServerHeader
data ServerServerHeaderPropertyInfo Source
AttrInfo ServerServerHeaderPropertyInfo | |
type AttrLabel ServerServerHeaderPropertyInfo = "server-header" | |
type AttrGetType ServerServerHeaderPropertyInfo = Maybe Text | |
type AttrBaseTypeConstraint ServerServerHeaderPropertyInfo = ServerK | |
type AttrSetTypeConstraint ServerServerHeaderPropertyInfo = * ~ Text | |
type AttrAllowedOps ServerServerHeaderPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ((:) AttrOpTag AttrClear ([] AttrOpTag)))) |
clearServerServerHeader :: (MonadIO m, ServerK o) => o -> m () Source
serverServerHeader :: AttrLabelProxy "serverHeader" Source
setServerServerHeader :: (MonadIO m, ServerK o) => o -> Text -> m () Source
SslCertFile
data ServerSslCertFilePropertyInfo Source
AttrInfo ServerSslCertFilePropertyInfo | |
type AttrLabel ServerSslCertFilePropertyInfo = "ssl-cert-file" | |
type AttrGetType ServerSslCertFilePropertyInfo = Maybe Text | |
type AttrBaseTypeConstraint ServerSslCertFilePropertyInfo = ServerK | |
type AttrSetTypeConstraint ServerSslCertFilePropertyInfo = * ~ Text | |
type AttrAllowedOps ServerSslCertFilePropertyInfo = (:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ((:) AttrOpTag AttrClear ([] AttrOpTag))) |
serverSslCertFile :: AttrLabelProxy "sslCertFile" Source
SslKeyFile
data ServerSslKeyFilePropertyInfo Source
AttrInfo ServerSslKeyFilePropertyInfo | |
type AttrLabel ServerSslKeyFilePropertyInfo = "ssl-key-file" | |
type AttrGetType ServerSslKeyFilePropertyInfo = Maybe Text | |
type AttrBaseTypeConstraint ServerSslKeyFilePropertyInfo = ServerK | |
type AttrSetTypeConstraint ServerSslKeyFilePropertyInfo = * ~ Text | |
type AttrAllowedOps ServerSslKeyFilePropertyInfo = (:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ((:) AttrOpTag AttrClear ([] AttrOpTag))) |
serverSslKeyFile :: AttrLabelProxy "sslKeyFile" Source
TlsCertificate
data ServerTlsCertificatePropertyInfo Source
AttrInfo ServerTlsCertificatePropertyInfo | |
type AttrLabel ServerTlsCertificatePropertyInfo = "tls-certificate" | |
type AttrGetType ServerTlsCertificatePropertyInfo = Maybe TlsCertificate | |
type AttrBaseTypeConstraint ServerTlsCertificatePropertyInfo = ServerK | |
type AttrSetTypeConstraint ServerTlsCertificatePropertyInfo = TlsCertificateK | |
type AttrAllowedOps ServerTlsCertificatePropertyInfo = (:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ((:) AttrOpTag AttrClear ([] AttrOpTag))) |
constructServerTlsCertificate :: TlsCertificateK a => a -> IO ([Char], GValue) Source
getServerTlsCertificate :: (MonadIO m, ServerK o) => o -> m (Maybe TlsCertificate) Source
serverTlsCertificate :: AttrLabelProxy "tlsCertificate" Source
Signals
RequestAborted
type ServerRequestAbortedCallback = Message -> ClientContext -> IO () Source
type ServerRequestAbortedCallbackC = Ptr () -> Ptr Message -> Ptr ClientContext -> Ptr () -> IO () Source
afterServerRequestAborted :: (GObject a, MonadIO m) => a -> ServerRequestAbortedCallback -> m SignalHandlerId Source
mkServerRequestAbortedCallback :: ServerRequestAbortedCallbackC -> IO (FunPtr ServerRequestAbortedCallbackC) Source
onServerRequestAborted :: (GObject a, MonadIO m) => a -> ServerRequestAbortedCallback -> m SignalHandlerId Source
serverRequestAbortedCallbackWrapper :: ServerRequestAbortedCallback -> Ptr () -> Ptr Message -> Ptr ClientContext -> Ptr () -> IO () Source
RequestFinished
type ServerRequestFinishedCallback = Message -> ClientContext -> IO () Source
type ServerRequestFinishedCallbackC = Ptr () -> Ptr Message -> Ptr ClientContext -> Ptr () -> IO () Source
afterServerRequestFinished :: (GObject a, MonadIO m) => a -> ServerRequestFinishedCallback -> m SignalHandlerId Source
mkServerRequestFinishedCallback :: ServerRequestFinishedCallbackC -> IO (FunPtr ServerRequestFinishedCallbackC) Source
onServerRequestFinished :: (GObject a, MonadIO m) => a -> ServerRequestFinishedCallback -> m SignalHandlerId Source
serverRequestFinishedCallbackWrapper :: ServerRequestFinishedCallback -> Ptr () -> Ptr Message -> Ptr ClientContext -> Ptr () -> IO () Source
RequestRead
type ServerRequestReadCallback = Message -> ClientContext -> IO () Source
type ServerRequestReadCallbackC = Ptr () -> Ptr Message -> Ptr ClientContext -> Ptr () -> IO () Source
afterServerRequestRead :: (GObject a, MonadIO m) => a -> ServerRequestReadCallback -> m SignalHandlerId Source
mkServerRequestReadCallback :: ServerRequestReadCallbackC -> IO (FunPtr ServerRequestReadCallbackC) Source
onServerRequestRead :: (GObject a, MonadIO m) => a -> ServerRequestReadCallback -> m SignalHandlerId Source
serverRequestReadCallbackWrapper :: ServerRequestReadCallback -> Ptr () -> Ptr Message -> Ptr ClientContext -> Ptr () -> IO () Source
RequestStarted
type ServerRequestStartedCallback = Message -> ClientContext -> IO () Source
type ServerRequestStartedCallbackC = Ptr () -> Ptr Message -> Ptr ClientContext -> Ptr () -> IO () Source
afterServerRequestStarted :: (GObject a, MonadIO m) => a -> ServerRequestStartedCallback -> m SignalHandlerId Source
mkServerRequestStartedCallback :: ServerRequestStartedCallbackC -> IO (FunPtr ServerRequestStartedCallbackC) Source
onServerRequestStarted :: (GObject a, MonadIO m) => a -> ServerRequestStartedCallback -> m SignalHandlerId Source
serverRequestStartedCallbackWrapper :: ServerRequestStartedCallback -> Ptr () -> Ptr Message -> Ptr ClientContext -> Ptr () -> IO () Source