-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | Provides URI/URL helper functions for use with Req
--   
--   This package provides helper functions for use with URIs and URLs in
--   Req.
@package req-url-extra
@version 0.1.0.0


-- | This package provides helper functions to make working with
--   <tt>Url</tt> from <a>Req</a> easier.
module Network.HTTP.Req.Url.Extra

-- | <a>toUrlHttp</a> converts an instance of <a>URI</a> to an instance of
--   <a>Url</a> and <a>Option</a>. If the <tt>URI</tt> is not a valid
--   <tt>http</tt> URI, then this function will return <a>Nothing</a>.
--   
--   This function parses scheme, host and path, returned as part of
--   <a>Url</a>, and optional query parameters, returned in <a>Option</a>.
--   It does not parse method name or authentication info from the given
--   <a>URI</a>.
toUrlHttp :: URI -> Maybe (Url  'Http, Option scheme)

-- | <a>toUrlHttp</a> converts an instance of <a>URI</a> to an instance of
--   <a>Url</a> and <a>Option</a>. If the <tt>URI</tt> is not a valid
--   <tt>https</tt> URI, then this function will return <a>Nothing</a>.
--   
--   This function parses scheme, host and path, returned as part of
--   <a>Url</a>, and optional query parameters, returned in <a>Option</a>.
--   It does not parse method name or authentication info from the given
--   <a>URI</a>.
toUrlHttps :: URI -> Maybe (Url  'Https, Option scheme)
