uniform-http-0.1.5.1: uniform text based operations to call http
Safe HaskellSafe-Inferred
LanguageHaskell2010

Uniform.Http

Description

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

Documentation

data TimeOutSec Source #

a timeout in seconds

Instances

Instances details
Generic TimeOutSec Source # 
Instance details

Defined in Uniform.HttpCall

Associated Types

type Rep TimeOutSec :: Type -> Type #

Read TimeOutSec Source # 
Instance details

Defined in Uniform.HttpCall

Show TimeOutSec Source # 
Instance details

Defined in Uniform.HttpCall

Eq TimeOutSec Source # 
Instance details

Defined in Uniform.HttpCall

Ord TimeOutSec Source # 
Instance details

Defined in Uniform.HttpCall

Zeros TimeOutSec Source # 
Instance details

Defined in Uniform.HttpCall

NiceStrings TimeOutSec Source # 
Instance details

Defined in Uniform.HttpCall

type Rep TimeOutSec Source # 
Instance details

Defined in Uniform.HttpCall

type Rep TimeOutSec = D1 ('MetaData "TimeOutSec" "Uniform.HttpCall" "uniform-http-0.1.5.1-KGUye61q8hJLOwIA9tUEqm" 'True) (C1 ('MetaCons "TimeOutSec" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int))))

data ServerURI Source #

Instances

Instances details
Monoid ServerURI Source # 
Instance details

Defined in Uniform.HttpURI

Semigroup ServerURI Source # 
Instance details

Defined in Uniform.HttpURI

Generic ServerURI Source # 
Instance details

Defined in Uniform.HttpURI

Associated Types

type Rep ServerURI :: Type -> Type #

Read ServerURI Source # 
Instance details

Defined in Uniform.HttpURI

Show ServerURI Source # 
Instance details

Defined in Uniform.HttpURI

Eq ServerURI Source # 
Instance details

Defined in Uniform.HttpURI

Ord ServerURI Source # 
Instance details

Defined in Uniform.HttpURI

Zeros ServerURI Source # 
Instance details

Defined in Uniform.HttpURI

type Rep ServerURI Source # 
Instance details

Defined in Uniform.HttpURI

type Rep ServerURI = D1 ('MetaData "ServerURI" "Uniform.HttpURI" "uniform-http-0.1.5.1-KGUye61q8hJLOwIA9tUEqm" 'True) (C1 ('MetaCons "ServerURI" 'PrefixI 'True) (S1 ('MetaSel ('Just "unServerURI") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 URI)))

data PortNumber Source #

Instances

Instances details
Generic PortNumber Source # 
Instance details

Defined in Uniform.HttpURI

Associated Types

type Rep PortNumber :: Type -> Type #

Read PortNumber Source # 
Instance details

Defined in Uniform.HttpURI

Show PortNumber Source # 
Instance details

Defined in Uniform.HttpURI

Eq PortNumber Source # 
Instance details

Defined in Uniform.HttpURI

Ord PortNumber Source # 
Instance details

Defined in Uniform.HttpURI

Zeros PortNumber Source # 
Instance details

Defined in Uniform.HttpURI

type Rep PortNumber Source # 
Instance details

Defined in Uniform.HttpURI

type Rep PortNumber = D1 ('MetaData "PortNumber" "Uniform.HttpURI" "uniform-http-0.1.5.1-KGUye61q8hJLOwIA9tUEqm" 'True) (C1 ('MetaCons "PortNumber" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))

data URI Source #

Instances

Instances details
FromJSON URI Source # 
Instance details

Defined in Uniform.HttpURI

ToJSON URI Source # 
Instance details

Defined in Uniform.HttpURI

Generic URI Source # 
Instance details

Defined in Uniform.HttpURI

Associated Types

type Rep URI :: Type -> Type #

Methods

from :: URI -> Rep URI x #

to :: Rep URI x -> URI #

Read URI Source # 
Instance details

Defined in Uniform.HttpURI

Show URI Source # 
Instance details

Defined in Uniform.HttpURI

Methods

showsPrec :: Int -> URI -> ShowS #

show :: URI -> String #

showList :: [URI] -> ShowS #

Eq URI Source # 
Instance details

Defined in Uniform.HttpURI

Methods

(==) :: URI -> URI -> Bool #

(/=) :: URI -> URI -> Bool #

Ord URI Source # 
Instance details

Defined in Uniform.HttpURI

Methods

compare :: URI -> URI -> Ordering #

(<) :: URI -> URI -> Bool #

(<=) :: URI -> URI -> Bool #

(>) :: URI -> URI -> Bool #

(>=) :: URI -> URI -> Bool #

max :: URI -> URI -> URI #

min :: URI -> URI -> URI #

Zeros URI Source # 
Instance details

Defined in Uniform.HttpURI

Methods

zero :: URI #

isZero :: URI -> Bool #

notZero :: URI -> Bool #

NiceStrings URI Source # 
Instance details

Defined in Uniform.HttpURI

Methods

shownice :: URI -> Text #

showNice :: URI -> Text #

showlong :: URI -> Text #

type Rep URI Source # 
Instance details

Defined in Uniform.HttpURI

type Rep URI = D1 ('MetaData "URI" "Uniform.HttpURI" "uniform-http-0.1.5.1-KGUye61q8hJLOwIA9tUEqm" 'True) (C1 ('MetaCons "URI" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

uriT :: URI -> Text Source #

gets the URI as a plain text

data AppType Source #

a special type for the app type argumetn

Instances

Instances details
Generic AppType Source # 
Instance details

Defined in Uniform.HttpCall

Associated Types

type Rep AppType :: Type -> Type #

Methods

from :: AppType -> Rep AppType x #

to :: Rep AppType x -> AppType #

Read AppType Source # 
Instance details

Defined in Uniform.HttpCall

Show AppType Source # 
Instance details

Defined in Uniform.HttpCall

Eq AppType Source # 
Instance details

Defined in Uniform.HttpCall

Methods

(==) :: AppType -> AppType -> Bool #

(/=) :: AppType -> AppType -> Bool #

Ord AppType Source # 
Instance details

Defined in Uniform.HttpCall

Zeros AppType Source # 
Instance details

Defined in Uniform.HttpCall

type Rep AppType Source # 
Instance details

Defined in Uniform.HttpCall

type Rep AppType = D1 ('MetaData "AppType" "Uniform.HttpCall" "uniform-http-0.1.5.1-KGUye61q8hJLOwIA9tUEqm" 'True) (C1 ('MetaCons "AppType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data HttpPath Source #

a type for the application path when calling Http after the URI till the ? (starts with /)

Instances

Instances details
Generic HttpPath Source # 
Instance details

Defined in Uniform.HttpURI

Associated Types

type Rep HttpPath :: Type -> Type #

Methods

from :: HttpPath -> Rep HttpPath x #

to :: Rep HttpPath x -> HttpPath #

Read HttpPath Source # 
Instance details

Defined in Uniform.HttpURI

Show HttpPath Source # 
Instance details

Defined in Uniform.HttpURI

Eq HttpPath Source # 
Instance details

Defined in Uniform.HttpURI

Ord HttpPath Source # 
Instance details

Defined in Uniform.HttpURI

Zeros HttpPath Source # 
Instance details

Defined in Uniform.HttpURI

type Rep HttpPath Source # 
Instance details

Defined in Uniform.HttpURI

type Rep HttpPath = D1 ('MetaData "HttpPath" "Uniform.HttpURI" "uniform-http-0.1.5.1-KGUye61q8hJLOwIA9tUEqm" 'True) (C1 ('MetaCons "HttpPath" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data HttpQueryParams Source #

Instances

Instances details
Monoid HttpQueryParams Source # 
Instance details

Defined in Uniform.HttpURI

Semigroup HttpQueryParams Source # 
Instance details

Defined in Uniform.HttpURI

Generic HttpQueryParams Source # 
Instance details

Defined in Uniform.HttpURI

Associated Types

type Rep HttpQueryParams :: Type -> Type #

Read HttpQueryParams Source # 
Instance details

Defined in Uniform.HttpURI

Show HttpQueryParams Source # 
Instance details

Defined in Uniform.HttpURI

Eq HttpQueryParams Source # 
Instance details

Defined in Uniform.HttpURI

Zeros HttpQueryParams Source # 
Instance details

Defined in Uniform.HttpURI

type Rep HttpQueryParams Source # 
Instance details

Defined in Uniform.HttpURI

type Rep HttpQueryParams = D1 ('MetaData "HttpQueryParams" "Uniform.HttpURI" "uniform-http-0.1.5.1-KGUye61q8hJLOwIA9tUEqm" 'True) (C1 ('MetaCons "HttpQueryParams" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [(Text, Maybe Text)])))