-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | RFC 4918 WebDAV support
--
-- This is a library for the Web Distributed Authoring and Versioning
-- (WebDAV) extensions to HTTP. At present it supports a very small
-- subset of client functionality.
--
-- In addition, there is an executable, hdav, which can be used for
-- command-line operation.
@package DAV
@version 0.3
module Network.Protocol.HTTP.DAV
type DAVState m a = StateT (DAVContext m) (ResourceT m) a
data DAVContext a
DAVContext :: [ByteString] -> Request a -> [ByteString] -> Manager -> Maybe ByteString -> ByteString -> ByteString -> DAVContext a
_allowedMethods :: DAVContext a -> [ByteString]
_baseRequest :: DAVContext a -> Request a
_complianceClasses :: DAVContext a -> [ByteString]
_httpManager :: DAVContext a -> Manager
_lockToken :: DAVContext a -> Maybe ByteString
_basicusername :: DAVContext a -> ByteString
_basicpassword :: DAVContext a -> ByteString
getProps :: String -> ByteString -> ByteString -> 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 ()
-- | 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.)
makeCollection :: String -> ByteString -> ByteString -> IO Bool
data DAVContext a
DAVContext :: [ByteString] -> Request a -> [ByteString] -> Manager -> Maybe ByteString -> ByteString -> ByteString -> DAVContext a
_allowedMethods :: DAVContext a -> [ByteString]
_baseRequest :: DAVContext a -> Request a
_complianceClasses :: DAVContext a -> [ByteString]
_httpManager :: DAVContext a -> Manager
_lockToken :: DAVContext a -> Maybe ByteString
_basicusername :: DAVContext a -> ByteString
_basicpassword :: DAVContext a -> ByteString
lockToken :: Lens (DAVContext a_a7fD) (DAVContext a_a7fD) (Maybe ByteString) (Maybe ByteString)
httpManager :: Lens (DAVContext a_a7fD) (DAVContext a_a7fD) Manager Manager
complianceClasses :: Lens (DAVContext a_a7fD) (DAVContext a_a7fD) [ByteString] [ByteString]
basicusername :: Lens (DAVContext a_a7fD) (DAVContext a_a7fD) ByteString ByteString
basicpassword :: Lens (DAVContext a_a7fD) (DAVContext a_a7fD) ByteString ByteString
baseRequest :: Lens (DAVContext a_a7fD) (DAVContext a_a7Wm) (Request a_a7fD) (Request a_a7Wm)
allowedMethods :: Lens (DAVContext a_a7fD) (DAVContext a_a7fD) [ByteString] [ByteString]