generated from tpl/purs
docs: readme
This commit is contained in:
parent
38675aac33
commit
5eca91d2dd
27
README.md
27
README.md
@ -8,23 +8,36 @@ The main entry point is `Effect.Aff.HTTP.fetch`:
|
|||||||
fetch <method> <url> <options>
|
fetch <method> <url> <options>
|
||||||
```
|
```
|
||||||
|
|
||||||
* `<method>` is `Effect.Aff.HTTP.Request.Method`:
|
<ul>
|
||||||
|
<li>
|
||||||
|
|
||||||
<!-- language: purescript -->
|
`<method>` is `Effect.Aff.HTTP.Request.Method`:
|
||||||
data Method
|
|
||||||
|
```purescript
|
||||||
|
data Method
|
||||||
= GET
|
= GET
|
||||||
| PUT
|
| PUT
|
||||||
| POST
|
| POST
|
||||||
| DELETE
|
| DELETE
|
||||||
| PATCH
|
| PATCH
|
||||||
| HEAD
|
| HEAD
|
||||||
|
```
|
||||||
|
</li>
|
||||||
|
|
||||||
* `<url>` is `Data.URL.URL` (from [`url-immutable`](https://pursuit.purescript.org/packages/purescript-url-immutable/))
|
<li>
|
||||||
* `<options>` is a partial record of:
|
|
||||||
|
|
||||||
<!-- language: purescript -->
|
`<url>` is `Data.URL.URL` (from [`url-immutable`](https://pursuit.purescript.org/packages/purescript-url-immutable/))
|
||||||
type OptionalFields =
|
</li>
|
||||||
|
<li>
|
||||||
|
|
||||||
|
`<options>` is a partial record of:
|
||||||
|
|
||||||
|
```purescript
|
||||||
|
type OptionalFields =
|
||||||
( body :: Body
|
( body :: Body
|
||||||
, headers :: Headers
|
, headers :: Headers
|
||||||
, credentials :: Credentials
|
, credentials :: Credentials
|
||||||
)
|
)
|
||||||
|
```
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
Loading…
Reference in New Issue
Block a user