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
To simplify json calls, which is probably the major use-case of this library it might be nice to provide some wrapper methods which simplify the api calls even further for the common get, put, patch, delete http verbs.
Returns a Response object with Body methods added for convenience. So you can, for example, call ky.json() directly on the Response without having to await it first
To make it clear, you won't save many characters with your proposal. 1 character to be exact. You can't really pass a plain object into the second one as we need to support options too. So would be:
The current Ky syntax is almost the same size, but is much more flexible. You can decide to send JSON, but receive something else, all without having to learn a different API.
To simplify json calls, which is probably the major use-case of this library it might be nice to provide some wrapper methods which simplify the api calls even further for the common get, put, patch, delete http verbs.
Eg.
These would obviously just be some syntatic sugar around the existing json examples, but imo it would make the api even nicer to use.
The text was updated successfully, but these errors were encountered: