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
Especially for beginners, we should try to minimize the necessary boilerplate code to perform an actual request.
Proposal
Automatically parse QueryParams from the given URL
We could parse the QueryParams from the given URL and add them to our Collection (just as if .setParameter() would have been called). A working sample implementation (in Kotlin) is already in the nextcloud-commons library available.
Issue
The following setup for a
NextcloudRequest
is quite verbose:Especially for beginners, we should try to minimize the necessary boilerplate code to perform an actual request.
Proposal
Automatically parse
QueryParam
s from the given URLWe could parse the
QueryParam
s from the given URL and add them to ourCollection
(just as if.setParameter()
would have been called). A working sample implementation (in Kotlin) is already in thenextcloud-commons
library available.Default
method
property toGET
It is the most often used HTTP verb and a natural choice to be preset (of course with keeping the possibility to override it):
Looking forward to some opinions 🙂
PS.: This issue has been split out of #266
The text was updated successfully, but these errors were encountered: