You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* In your HTML files : `<script src="your/path/to/jsonclient.js"></script>` (exposes the variable `$json`)
17
17
18
18
19
19
@@ -33,7 +33,7 @@ The Promise returned by `$json.get` resolves to the JSON data requested.
33
33
34
34
### POST requests
35
35
36
-
If you have made any POST request via the Fetch API, you probably notice that it is very redundant.
36
+
If you have made any POST request via the Fetch API, you probably noticed that it is very redundant.
37
37
38
38
Therefore, this library enables you to ease your job at emitting POST requests.
39
39
@@ -45,21 +45,19 @@ Therefore, this library enables you to ease your job at emitting POST requests.
45
45
46
46
```
47
47
$json.post :: (
48
-
url: stirng,
48
+
url: string,
49
49
data: any,
50
50
cache: $json.postOptions.Cache,
51
51
credentials: $json.postOptions.Credentials,
52
52
mode: $json.postOptions.Mode,
53
53
redirect: $json.postOptions.Redirect,
54
-
referrer: $json.postOptions.Redirect
54
+
referrer: $json.postOptions.Referrer
55
55
) -> Promise
56
56
```
57
57
58
58
59
59
60
-
If you have any doubts, you could refer to [Mozilla's guide on how to provide options to `fetch`](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#Supplying_request_options)
61
-
62
-
60
+
If you have any doubts, you could refer to [Mozilla's guide on how to provide options to `fetch`](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#Supplying_request_options) or ask for advices on my Discord server.
0 commit comments