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