Copyright | (C) Richard Cook 2018 |
---|---|
License | MIT |
Maintainer | rcook@rcook.org |
Stability | stable |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
This package provides helper functions to make working with Url
from
Req easier.
Documentation
toUrlHttp
converts an instance of URI
to an instance of Url
and
Option
. If the URI
is not a valid http
URI, then this function
will return Nothing
.
This function parses scheme, host and path, returned as part of Url
,
and optional query parameters, returned in Option
. It does not parse
method name or authentication info from the given URI
.
toUrlHttp
converts an instance of URI
to an instance of Url
and
Option
. If the URI
is not a valid https
URI, then this function
will return Nothing
.
This function parses scheme, host and path, returned as part of Url
,
and optional query parameters, returned in Option
. It does not parse
method name or authentication info from the given URI
.