Safe Haskell | Unsafe |
---|---|
Language | Haskell2010 |
using http simple to sparql queries and to create requests part of uniform (to use only text wraps URI in URI
Synopsis
- newtype PortNumber = PortNumber Int
- newtype HttpQueryParams = HttpQueryParams [(Text, Maybe Text)]
- newtype HttpPath = HttpPath Text
- newtype ServerURI = ServerURI {
- unServerURI :: URI
- newtype URI = URI Text
- unURI :: URI -> Text
- uriT :: URI -> Text
- makeURI :: Text -> URI
- addToURI :: URI -> Text -> URI
- mkServerURI :: URI -> ServerURI
- mkServerURI4text :: Text -> ServerURI
- mkHttpPath :: Text -> HttpPath
- unHttpQueryParams :: HttpQueryParams -> [(Text, Maybe Text)]
- mkHttpQueryParams :: [(Text, Maybe Text)] -> HttpQueryParams
- parseURI :: Text -> URI
- makeAbsURI :: Text -> URI
- mkPortNumber :: Int -> PortNumber
- unPortNumber :: PortNumber -> Int
- addPort2ServerURI :: ServerURI -> PortNumber -> ServerURI
Documentation
newtype PortNumber Source #
Instances
newtype HttpQueryParams Source #
HttpQueryParams [(Text, Maybe Text)] |
Instances
a type for the application path when calling Http after the URI till the ? (starts with /)
mkServerURI :: URI -> ServerURI Source #
mkServerURI4text :: Text -> ServerURI Source #
mkHttpPath :: Text -> HttpPath Source #
unHttpQueryParams :: HttpQueryParams -> [(Text, Maybe Text)] Source #
the type for the paramter key - value pairs, comes after the ?
mkHttpQueryParams :: [(Text, Maybe Text)] -> HttpQueryParams Source #
makeAbsURI :: Text -> URI Source #
mkPortNumber :: Int -> PortNumber Source #
unPortNumber :: PortNumber -> Int Source #
addPort2ServerURI :: ServerURI -> PortNumber -> ServerURI Source #