Module
Fetch.Core.Request
- Package
- purescript-fetch-core
- Repository
- rowtype-yoga/purescript-fetch-core
#RequestOptions Source
type RequestOptions :: Row Type
type RequestOptions = (body :: RequestBody, cache :: RequestCache, credentials :: RequestCredentials, headers :: Headers, integrity :: Integrity, method :: Method, mode :: RequestMode, referrer :: Referrer, referrerPolicy :: ReferrerPolicy)
#UnsafeRequestOptions Source
type UnsafeRequestOptions :: Row Type
type UnsafeRequestOptions = (body :: RequestBody, cache :: String, credentials :: String, headers :: Headers, integrity :: String, method :: String, mode :: String, referrer :: String, referrerPolicy :: String)
#ToInternal Source
class ToInternal :: Row Type -> Row Type -> Constraint
class ToInternal input output | input -> output where
Members
Instances
(Union rIn thru RequestOptions, RowToList rIn rInRL, ToInternalHelper rIn rInRL rOut) => ToInternal rIn rOut
#ToInternalConverter Source
class ToInternalConverter input output | input -> output where
Members
convertImpl :: input -> output
Instances
ToInternalConverter Method String
ToInternalConverter Headers Headers
ToInternalConverter RequestBody RequestBody
ToInternalConverter RequestCredentials String
ToInternalConverter RequestCache String
ToInternalConverter RequestMode String
ToInternalConverter Referrer String
ToInternalConverter ReferrerPolicy String
ToInternalConverter Integrity String
#ToInternalHelper Source
class ToInternalHelper :: forall k. Row Type -> k -> Row Type -> Constraint
class ToInternalHelper input inputRL output | inputRL -> output where
Members
convertHelper :: Proxy inputRL -> Record input -> Record output
Instances
ToInternalHelper r Nil ()
(ToInternalConverter tpeIn tpeOut, Cons sym tpeIn tailIn r, RowToList tailIn tailInRL, Lacks sym tailIn, IsSymbol sym, ToInternalHelper tailIn tailInRL tailOutput, Cons sym tpeOut tailOutput output, Lacks sym tailOutput) => ToInternalHelper r (Cons sym tpeIn tailInRL) output
#new Source
new :: forall input output thruIn thruOut. Union input thruIn RequestOptions => Union output thruOut UnsafeRequestOptions => ToInternal input output => String -> Record input -> Effect Request