import public HTTP.API.Client.Content
import public HTTP.API.Client.Header
import public HTTP.API.Client.Interface
import public HTTP.API.Client.Method
import public HTTP.API.Client.Path
import public HTTP.API.Client.Query
import public HTTP.API.Client.Requestdata HTTPError : TypeHTTP Errors
toJSONErr : FromJSON e => HTTPError -> Maybe eTries to convert an `HTTPErr` to an error of type `e`
by decoding its `ReqError` constructor.
decodeHTTPErr : (0 e : Type) -> Has HTTPError es => Has e es => FromJSON e => MErr f => f es a -> f es aTries to convert an `HTTPErr` to an error of type `e`
and throws that in case the conversion succeeds. Otherwise,
the original request error is rethrown.
send1 : Has HTTPError es => HTTPLocal => Decoder t -> (Result es t -> IO1 ()) -> HTTPRequest -> IO1 (IO1 ())sendEndpoint : Has HTTPError es => HTTPLocal => (endpoint : HList ts) -> {auto all : All Receive ts} -> HList (AllRecConstraints endpoint) => HList (AllRecTypes endpoint) -> Async JS es ()requestEndpoint : Has HTTPError es => HTTPLocal => (endpoint : HList ts) -> {auto all : All Receive ts} -> HList (AllRecConstraints endpoint) => HList (AllRecTypes endpoint) -> (0 f : Type) -> (0 t : Type) -> DecodeVia f t => Async JS es trequestJSONEndpoint : Has HTTPError es => HTTPLocal => (endpoint : HList ts) -> {auto all : All Receive ts} -> HList (AllRecConstraints endpoint) => HList (AllRecTypes endpoint) -> (0 t : Type) -> DecodeVia JSON t => Async JS es t