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
Is your feature request related to a problem? Please describe.
When defining API requests one particular issue we're always facing is where the data should be encoded in multiple places. This might happen in cases when the API is badly designed. The other issue is that due to the underlying representation of multipart requests, the syntax is strange and hard to use in the current setup.
Describe the solution you'd like
We could make use of function builders for a more dynamic syntax. There are two solutions that I've considered.
Describe alternatives you've considered
Another solution I've considered is to have a "build" (the name needs to be clarified) variable (SwiftUI like) that builds the request when the session manager needs it.
Is your feature request related to a problem? Please describe.
When defining API requests one particular issue we're always facing is where the data should be encoded in multiple places. This might happen in cases when the API is badly designed. The other issue is that due to the underlying representation of multipart requests, the syntax is strange and hard to use in the current setup.
Describe the solution you'd like
We could make use of function builders for a more dynamic syntax. There are two solutions that I've considered.
Describe alternatives you've considered
Another solution I've considered is to have a "build" (the name needs to be clarified) variable (SwiftUI like) that builds the request when the session manager needs it.
The downside of this approach is that a Request object needs to be defined, and all the properties should be stored in the object.
Additional context
N/A
The text was updated successfully, but these errors were encountered: