generated from tpl/purs
feat: add HEAD
This commit is contained in:
parent
589a8b0eec
commit
aa6b8b811f
@ -1,3 +1,3 @@
|
|||||||
bun 1.0.11
|
bun 1.0.11
|
||||||
purescript 0.15.12
|
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.POST -> "POST"
|
||||||
Req.PATCH -> "PATCH"
|
Req.PATCH -> "PATCH"
|
||||||
Req.DELETE -> "DELETE"
|
Req.DELETE -> "DELETE"
|
||||||
|
Req.HEAD -> "HEAD"
|
||||||
headers' = Object.fromFoldableWithIndex headers
|
headers' = Object.fromFoldableWithIndex headers
|
||||||
|
|
||||||
liftAff $ Promise.toAffE $ fetchImpl url methodStr headers' $ Nullable.toNullable bodyRaw
|
liftAff $ Promise.toAffE $ fetchImpl url methodStr headers' $ Nullable.toNullable bodyRaw
|
||||||
|
@ -35,6 +35,7 @@ fetchProxy pxy req = do
|
|||||||
Req.POST -> "POST"
|
Req.POST -> "POST"
|
||||||
Req.PATCH -> "PATCH"
|
Req.PATCH -> "PATCH"
|
||||||
Req.DELETE -> "DELETE"
|
Req.DELETE -> "DELETE"
|
||||||
|
Req.HEAD -> "HEAD"
|
||||||
headers' = Object.fromFoldableWithIndex headers
|
headers' = Object.fromFoldableWithIndex headers
|
||||||
|
|
||||||
liftAff $ Promise.toAffE $ fetchImpl pxy url methodStr headers' $ Nullable.toNullable bodyRaw
|
liftAff $ Promise.toAffE $ fetchImpl pxy url methodStr headers' $ Nullable.toNullable bodyRaw
|
||||||
|
@ -111,6 +111,7 @@ data Method
|
|||||||
| POST
|
| POST
|
||||||
| DELETE
|
| DELETE
|
||||||
| PATCH
|
| PATCH
|
||||||
|
| HEAD
|
||||||
|
|
||||||
derive instance Generic Method _
|
derive instance Generic Method _
|
||||||
instance Eq Method where
|
instance Eq Method where
|
||||||
|
Loading…
Reference in New Issue
Block a user