generated from tpl/purs
feat: add HEAD
This commit is contained in:
parent
589a8b0eec
commit
aa6b8b811f
@ -1,3 +1,3 @@
|
||||
bun 1.0.11
|
||||
purescript 0.15.12
|
||||
nodejs 20.9.0
|
||||
nodejs 21.6.2
|
||||
|
6382
spago.lock
Normal file
6382
spago.lock
Normal file
File diff suppressed because it is too large
Load Diff
@ -35,6 +35,7 @@ fetch req = do
|
||||
Req.POST -> "POST"
|
||||
Req.PATCH -> "PATCH"
|
||||
Req.DELETE -> "DELETE"
|
||||
Req.HEAD -> "HEAD"
|
||||
headers' = Object.fromFoldableWithIndex headers
|
||||
|
||||
liftAff $ Promise.toAffE $ fetchImpl url methodStr headers' $ Nullable.toNullable bodyRaw
|
||||
|
@ -35,6 +35,7 @@ fetchProxy pxy req = do
|
||||
Req.POST -> "POST"
|
||||
Req.PATCH -> "PATCH"
|
||||
Req.DELETE -> "DELETE"
|
||||
Req.HEAD -> "HEAD"
|
||||
headers' = Object.fromFoldableWithIndex headers
|
||||
|
||||
liftAff $ Promise.toAffE $ fetchImpl pxy url methodStr headers' $ Nullable.toNullable bodyRaw
|
||||
|
@ -111,6 +111,7 @@ data Method
|
||||
| POST
|
||||
| DELETE
|
||||
| PATCH
|
||||
| HEAD
|
||||
|
||||
derive instance Generic Method _
|
||||
instance Eq Method where
|
||||
|
Loading…
Reference in New Issue
Block a user