generated from tpl/purs
docs: readme
This commit is contained in:
parent
66f87f413b
commit
0b247ceca1
@ -9,7 +9,7 @@ fetch <method> <url> <options>
|
|||||||
```
|
```
|
||||||
|
|
||||||
* `<method>` is `Effect.Aff.HTTP.Request.Method`:
|
* `<method>` is `Effect.Aff.HTTP.Request.Method`:
|
||||||
```purescript
|
<!-- language: purescript -->
|
||||||
data Method
|
data Method
|
||||||
= GET
|
= GET
|
||||||
| PUT
|
| PUT
|
||||||
@ -17,13 +17,11 @@ fetch <method> <url> <options>
|
|||||||
| DELETE
|
| DELETE
|
||||||
| PATCH
|
| PATCH
|
||||||
| HEAD
|
| HEAD
|
||||||
```
|
|
||||||
* `<url>` is `Data.URL.URL` (from [`url-immutable`](https://pursuit.purescript.org/packages/purescript-url-immutable/))
|
* `<url>` is `Data.URL.URL` (from [`url-immutable`](https://pursuit.purescript.org/packages/purescript-url-immutable/))
|
||||||
* `<options>` is a partial record of:
|
* `<options>` is a partial record of:
|
||||||
```purescript
|
<!-- language: purescript -->
|
||||||
type OptionalFields =
|
type OptionalFields =
|
||||||
( body :: Body
|
( body :: Body
|
||||||
, headers :: Headers
|
, headers :: Headers
|
||||||
, credentials :: Credentials
|
, credentials :: Credentials
|
||||||
)
|
)
|
||||||
```
|
|
||||||
|
Loading…
Reference in New Issue
Block a user