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 |
- newtype Request = Request (ForeignPtr Request)
- class GObject o => RequestK o
- toRequest :: RequestK o => o -> IO Request
- noRequest :: Maybe Request
- data RequestGetContentLengthMethodInfo
- requestGetContentLength :: (MonadIO m, RequestK a) => a -> m Int64
- data RequestGetContentTypeMethodInfo
- requestGetContentType :: (MonadIO m, RequestK a) => a -> m (Maybe Text)
- data RequestGetSessionMethodInfo
- requestGetSession :: (MonadIO m, RequestK a) => a -> m Session
- data RequestGetUriMethodInfo
- requestGetUri :: (MonadIO m, RequestK a) => a -> m URI
- data RequestSendMethodInfo
- requestSend :: (MonadIO m, RequestK a, CancellableK b) => a -> Maybe b -> m InputStream
- data RequestSendAsyncMethodInfo
- requestSendAsync :: (MonadIO m, RequestK a, CancellableK b) => a -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- data RequestSendFinishMethodInfo
- requestSendFinish :: (MonadIO m, RequestK a, AsyncResultK b) => a -> b -> m InputStream
- data RequestSessionPropertyInfo
- constructRequestSession :: SessionK a => a -> IO ([Char], GValue)
- getRequestSession :: (MonadIO m, RequestK o) => o -> m Session
- requestSession :: AttrLabelProxy "session"
- data RequestUriPropertyInfo
- constructRequestUri :: URI -> IO ([Char], GValue)
- getRequestUri :: (MonadIO m, RequestK o) => o -> m URI
- requestUri :: AttrLabelProxy "uri"
Exported types
GObject Request | |
((~) * info (ResolveRequestMethod t Request), MethodInfo * info Request p) => IsLabelProxy t (Request -> p) | |
type ParentTypes Request | |
type AttributeList Request | |
type SignalList Request |
Methods
requestGetContentLength
data RequestGetContentLengthMethodInfo Source
((~) * signature (m Int64), MonadIO m, RequestK a) => MethodInfo * RequestGetContentLengthMethodInfo a signature |
requestGetContentLength :: (MonadIO m, RequestK a) => a -> m Int64 Source
requestGetContentType
data RequestGetContentTypeMethodInfo Source
((~) * signature (m (Maybe Text)), MonadIO m, RequestK a) => MethodInfo * RequestGetContentTypeMethodInfo a signature |
requestGetSession
data RequestGetSessionMethodInfo Source
((~) * signature (m Session), MonadIO m, RequestK a) => MethodInfo * RequestGetSessionMethodInfo a signature |
requestGetSession :: (MonadIO m, RequestK a) => a -> m Session Source
requestGetUri
data RequestGetUriMethodInfo Source
((~) * signature (m URI), MonadIO m, RequestK a) => MethodInfo * RequestGetUriMethodInfo a signature |
requestGetUri :: (MonadIO m, RequestK a) => a -> m URI Source
requestSend
data RequestSendMethodInfo Source
((~) * signature (Maybe b -> m InputStream), MonadIO m, RequestK a, CancellableK b) => MethodInfo * RequestSendMethodInfo a signature |
requestSend :: (MonadIO m, RequestK a, CancellableK b) => a -> Maybe b -> m InputStream Source
requestSendAsync
data RequestSendAsyncMethodInfo Source
((~) * signature (Maybe b -> Maybe AsyncReadyCallback -> m ()), MonadIO m, RequestK a, CancellableK b) => MethodInfo * RequestSendAsyncMethodInfo a signature |
requestSendAsync :: (MonadIO m, RequestK a, CancellableK b) => a -> Maybe b -> Maybe AsyncReadyCallback -> m () Source
requestSendFinish
data RequestSendFinishMethodInfo Source
((~) * signature (b -> m InputStream), MonadIO m, RequestK a, AsyncResultK b) => MethodInfo * RequestSendFinishMethodInfo a signature |
requestSendFinish :: (MonadIO m, RequestK a, AsyncResultK b) => a -> b -> m InputStream Source
Properties
Session
data RequestSessionPropertyInfo Source
AttrInfo RequestSessionPropertyInfo | |
type AttrLabel RequestSessionPropertyInfo = "session" | |
type AttrGetType RequestSessionPropertyInfo = Session | |
type AttrBaseTypeConstraint RequestSessionPropertyInfo = RequestK | |
type AttrSetTypeConstraint RequestSessionPropertyInfo = SessionK | |
type AttrAllowedOps RequestSessionPropertyInfo = (:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ((:) AttrOpTag AttrClear ([] AttrOpTag))) |
getRequestSession :: (MonadIO m, RequestK o) => o -> m Session Source
requestSession :: AttrLabelProxy "session" Source
Uri
data RequestUriPropertyInfo Source
AttrInfo RequestUriPropertyInfo | |
type AttrLabel RequestUriPropertyInfo = "uri" | |
type AttrGetType RequestUriPropertyInfo = URI | |
type AttrBaseTypeConstraint RequestUriPropertyInfo = RequestK | |
type AttrSetTypeConstraint RequestUriPropertyInfo = * ~ URI | |
type AttrAllowedOps RequestUriPropertyInfo = (:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ((:) AttrOpTag AttrClear ([] AttrOpTag))) |
getRequestUri :: (MonadIO m, RequestK o) => o -> m URI Source
requestUri :: AttrLabelProxy "uri" Source