Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
the only externally visible module exports all using http simple to sparql queries and to create requests part of uniform (to use only text uses the newer http-conduit module because teh old HTTP cannot do https
Synopsis
- data TimeOutSec
- mkTimeOutSec :: Int -> TimeOutSec
- mkTimeOutDefault :: TimeOutSec
- mkServerURI :: URI -> ServerURI
- mkServerURI4text :: Text -> ServerURI
- data ServerURI
- addPort2ServerURI :: ServerURI -> PortNumber -> ServerURI
- data PortNumber
- mkPortNumber :: Int -> PortNumber
- data URI
- makeURI :: Text -> URI
- addToURI :: URI -> Text -> URI
- uriT :: URI -> Text
- mkAppType :: Text -> AppType
- data AppType
- callHTTP10post :: Bool -> AppType -> ServerURI -> HttpPath -> LazyByteString -> HttpQueryParams -> TimeOutSec -> ErrIO Text
- callHTTP8get :: Bool -> ServerURI -> ErrIO Text
- mkHttpPath :: Text -> HttpPath
- data HttpPath
- mkHttpQueryParams :: [(Text, Maybe Text)] -> HttpQueryParams
- data HttpQueryParams
- module Uniform.HttpFiles
Documentation
data TimeOutSec Source #
a timeout in seconds
Instances
mkTimeOutSec :: Int -> TimeOutSec Source #
mkServerURI :: URI -> ServerURI Source #
mkServerURI4text :: Text -> ServerURI Source #
addPort2ServerURI :: ServerURI -> PortNumber -> ServerURI Source #
data PortNumber Source #
Instances
mkPortNumber :: Int -> PortNumber Source #
a special type for the app type argumetn
callHTTP10post :: Bool -> AppType -> ServerURI -> HttpPath -> LazyByteString -> HttpQueryParams -> TimeOutSec -> ErrIO Text Source #
mkHttpPath :: Text -> HttpPath Source #
a type for the application path when calling Http after the URI till the ? (starts with /)
mkHttpQueryParams :: [(Text, Maybe Text)] -> HttpQueryParams Source #
data HttpQueryParams Source #
Instances
module Uniform.HttpFiles