| 1530128) |
|
Torri  |
| torridollar845(at)laposte.net |
Ort: Ober-Zwischenbrunn |
|
Use the response immediately with out utilizing response.json(), response.text(), or response.blob().
Promise-like error dealing with - all 400 and 500 errors are directed into the catch block mechanically. Easy error dealing with when using await - errors will be returned so you don't have to jot down a attempt/catch block. Content-Type headers are set mechanically based mostly on the physique content material.
Get all the things you want about your response - headers, body, standing, and more. Helper for producing query strings so you don't need to mess with query parameters. Generates authorization headers with an auth property. Create cases to carry url and choices so you don't should repeat your self.
Note: zlFetch is a ESM library since v4.0.0. Then you should use it by importing it in your JavaScript file. You may import zlFetch instantly into JavaScript by way of a CDN. To do that, you first must set your script's sort to module, then import zlFetch.
You need to use zlFetch similar to a normal fetch perform.
|