request
request is a proxy request to come around CORS issues.
Both callbacks and promises is supported so it is all about which approach you will want to take.
How to use
(as callback)
params (as callback)
When working with callbacks the request component will always try to parse the response as json
.
If you want to handle the parsing by yourself and parse as something else than json promise
is more suitable.
(as promise)
GET
is the default request method.
Advanced examples
Last updated