Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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
- newtype AppType = AppType Text
- newtype TimeOutSec = TimeOutSec (Maybe Int)
- makeRequest :: URI -> ErrIO Request
- callHTTP8get :: Bool -> ServerURI -> ErrIO Text
- callHTTP10post :: Bool -> AppType -> ServerURI -> HttpPath -> LazyByteString -> HttpQueryParams -> TimeOutSec -> ErrIO Text
- formatQuery :: (Text, Maybe Text) -> (ByteString, Maybe ByteString)
- mkTimeOutSec :: Int -> TimeOutSec
- mkTimeOutDefault :: TimeOutSec
- mkAppType :: Text -> AppType
- mkServerURI :: URI -> ServerURI
- data ServerURI
Documentation
a special type for the app type argumetn
newtype TimeOutSec Source #
a timeout in seconds
Instances
callHTTP10post :: Bool -> AppType -> ServerURI -> HttpPath -> LazyByteString -> HttpQueryParams -> TimeOutSec -> ErrIO Text Source #
formatQuery :: (Text, Maybe Text) -> (ByteString, Maybe ByteString) Source #
mkTimeOutSec :: Int -> TimeOutSec Source #
mkServerURI :: URI -> ServerURI Source #