shpider-0.0.7: Web automation library in Haskell.Source codeContentsIndex
module Network.URL
isSameDomain :: String -> String -> Bool
mkAbsoluteUrl :: String -> Shpider (Maybe String)
isAbsoluteUrl :: String -> Bool
isMailto :: String -> Bool
isHttp :: String -> Bool
getDomain :: String -> String
getFolder :: String -> String
module Network.URL
isSameDomain :: String -> String -> BoolSource
is the second url on the same domain as the first? Note: this will return False if either URL is invalid.
mkAbsoluteUrl :: String -> Shpider (Maybe String)Source
Assumes the given URL is relative to currentPage.
isAbsoluteUrl :: String -> BoolSource
True if the url is absolute
isMailto :: String -> BoolSource
is the given string of form ""?
isHttp :: String -> BoolSource
is the url a http url?
getDomain :: String -> StringSource

Get the protocol and domain from a URL eg

    getDomain "widdle://"
    -- "widdle://"
getFolder :: String -> StringSource

Get the whole url up to and including the current folder of the present document.

    getFolder "widdle://"
    -- "widdle://"
Produced by Haddock version 2.4.2