Module
Web.Fetch.Request
- Package
- purescript-web-fetch
- Repository
- purescript-web/purescript-web-fetch
#RequestOptions Source
type RequestOptions :: Row Type
type RequestOptions = (body :: RequestBody, cache :: RequestCache, credentials :: RequestCredentials, headers :: Headers, integrity :: Integrity, method :: Method, mode :: RequestMode, referrer :: Maybe 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 :: Nullable String, referrerPolicy :: String)
#BuildRequestOptions Source
class BuildRequestOptions a where
Members
buildRequestOptions :: a -> Record RequestOptions
Instances
(RowToList r rl, ConvertOptions rl r r', Union r' RequestOptions r'', Nub r'' RequestOptions) => BuildRequestOptions (Record r)
#ConvertOptions Source
class ConvertOptions :: RowList Type -> Row Type -> Row Type -> Constraint
class ConvertOptions (rl :: RowList Type) (input :: Row Type) (output :: Row Type) | rl input -> output where
Members
convertOptions :: forall rlproxy. rlproxy rl -> Builder (Record input) (Record output)
Instances
(ConvertOptions rest input' output, ConvertOption field from to, Cons field from rx input, Cons field to rx input', IsSymbol field) => ConvertOptions (Cons field from rest) input output
ConvertOptions Nil r r
#ConvertOption Source
class ConvertOption :: Symbol -> Type -> Type -> Constraint
class ConvertOption (field :: Symbol) from to | field -> to where
Members
convertOption :: forall sproxy. sproxy field -> from -> to
Instances
ConvertOption "method" Method Method
ConvertOption "body" RequestBody RequestBody
ConvertOption "body" String RequestBody
ConvertOption "body" ArrayBuffer RequestBody
ConvertOption "body" (ArrayView t) RequestBody
ConvertOption "headers" Headers Headers
(Homogeneous r String) => ConvertOption "headers" (Record r) Headers
ConvertOption "headers" (Object String) Headers
ConvertOption "headers" (Array (Tuple String String)) Headers
ConvertOption "cache" RequestCache RequestCache
ConvertOption "mode" RequestMode RequestMode
ConvertOption "referrer" Referrer (Maybe Referrer)
ConvertOption "referrerPolicy" ReferrerPolicy ReferrerPolicy
ConvertOption "integrity" Integrity Integrity