Safe Haskell | None |
---|
- type DAVState m a = StateT DAVContext (ResourceT m) a
- data DAVContext = DAVContext {}
- getProps :: String -> ByteString -> ByteString -> Maybe Depth -> IO Document
- getPropsAndContent :: String -> ByteString -> ByteString -> IO (Document, (Maybe ByteString, ByteString))
- putContentAndProps :: String -> ByteString -> ByteString -> (Document, (Maybe ByteString, ByteString)) -> IO ()
- putContent :: String -> ByteString -> ByteString -> (Maybe ByteString, ByteString) -> IO ()
- deleteContent :: String -> ByteString -> ByteString -> IO ()
- moveContent :: String -> ByteString -> ByteString -> ByteString -> IO ()
- makeCollection :: String -> ByteString -> ByteString -> IO Bool
- caldavReport :: String -> ByteString -> ByteString -> IO Document
- data Depth
- = Depth0
- | Depth1
- | DepthInfinity
- data DAVContext = DAVContext {}
- lockToken :: Lens' DAVContext (Maybe ByteString)
- httpManager :: Lens' DAVContext Manager
- depth :: Lens' DAVContext (Maybe Depth)
- complianceClasses :: Lens' DAVContext [ByteString]
- basicusername :: Lens' DAVContext ByteString
- basicpassword :: Lens' DAVContext ByteString
- baseRequest :: Lens' DAVContext Request
- allowedMethods :: Lens' DAVContext [ByteString]
Documentation
type DAVState m a = StateT DAVContext (ResourceT m) aSource
data DAVContext Source
getProps :: String -> ByteString -> ByteString -> Maybe Depth -> IO DocumentSource
getPropsAndContent :: String -> ByteString -> ByteString -> IO (Document, (Maybe ByteString, ByteString))Source
putContentAndProps :: String -> ByteString -> ByteString -> (Document, (Maybe ByteString, ByteString)) -> IO ()Source
putContent :: String -> ByteString -> ByteString -> (Maybe ByteString, ByteString) -> IO ()Source
deleteContent :: String -> ByteString -> ByteString -> IO ()Source
moveContent :: String -> ByteString -> ByteString -> ByteString -> IO ()Source
makeCollection :: String -> ByteString -> ByteString -> IO BoolSource
Creates a WebDAV collection, which is similar to a directory.
Returns False if the collection could not be made due to an intermediate collection not existing. (Ie, collection abcd cannot be made until collection ab/c exists.)
caldavReport :: String -> ByteString -> ByteString -> IO DocumentSource
data DAVContext Source