resty
resty copied to clipboard
Client: Improve its creation flow and its options
List of Resty client updates -
- [x] Provide the ability to update timeout values
- [ ] Add Read-Write Mutex into the client struct to make all the client properties thread-safe. All the exported fields will become getter methods, e.g.,
client.BaseURL => client.BaseURL()
- [ ] Improve TLS config handling
- [ ] Improve Transport handling
- [ ] Make middleware composable
- [x] Remove
DualStack
fromnet.Dialer
since its deprecated - [ ] Remove
http.Client.Timeout
in favor of Request Context cancellation with timeout- Refactor from
client.SetTimeout
toclient.SetRequestTimeout
- Refactor from
- [x] Remove deprecated method
client.SetHostURL