Module
Fetch.Internal.Request
- Package
- purescript-fetch
- Repository
- rowtype-yoga/purescript-fetch
#HighlevelRequestOptions Source
type HighlevelRequestOptions :: Row Type -> Type -> Row Type
type HighlevelRequestOptions headers body = (body :: body, cache :: RequestCache, credentials :: RequestCredentials, duplex :: Duplex, headers :: Record headers, integrity :: Integrity, method :: Method, mode :: RequestMode, referrer :: Referrer, referrerPolicy :: ReferrerPolicy)
#ToCoreRequestOptions Source
class ToCoreRequestOptions :: Row Type -> Row Type -> Constraint
class ToCoreRequestOptions input output | input -> output where
Members
Instances
(Union rIn thru (HighlevelRequestOptions headers body), RowToList rIn rInRL, ToCoreRequestOptionsHelper rIn rInRL rOut) => ToCoreRequestOptions rIn rOut
#ToCoreRequestOptionsConverter Source
class ToCoreRequestOptionsConverter :: forall k. k -> Type -> Type -> Constraint
class ToCoreRequestOptionsConverter sym input output | sym input -> output where
Members
convertImpl :: Proxy sym -> input -> output
Instances
ToCoreRequestOptionsConverter "method" Method String
(Homogeneous r String) => ToCoreRequestOptionsConverter "headers" (Record r) Headers
(ToRequestBody body) => ToCoreRequestOptionsConverter "body" body RequestBody
ToCoreRequestOptionsConverter "credentials" RequestCredentials String
ToCoreRequestOptionsConverter "cache" RequestCache String
ToCoreRequestOptionsConverter "mode" RequestMode String
ToCoreRequestOptionsConverter "referrer" Referrer String
ToCoreRequestOptionsConverter "referrerPolicy" ReferrerPolicy String
ToCoreRequestOptionsConverter "integrity" Integrity String
ToCoreRequestOptionsConverter "duplex" Duplex String
#ToCoreRequestOptionsHelper Source
class ToCoreRequestOptionsHelper :: forall k. Row Type -> k -> Row Type -> Constraint
class ToCoreRequestOptionsHelper input inputRL output | inputRL -> output where
Members
convertHelper :: Proxy inputRL -> Record input -> Record output
Instances
ToCoreRequestOptionsHelper r Nil ()
(ToCoreRequestOptionsConverter sym tpeIn tpeOut, Cons sym tpeIn tailIn r, RowToList tailIn tailInRL, Lacks sym tailIn, IsSymbol sym, ToCoreRequestOptionsHelper tailIn tailInRL tailOutput, Cons sym tpeOut tailOutput output, Lacks sym tailOutput) => ToCoreRequestOptionsHelper r (Cons sym tpeIn tailInRL) output