v1.0.0-beta10
What's Changed
- based on Ktor 2.0.2
- added windows target #26
- annotations PATCH, POST, PUT now have a default value #22
- Ktorfit now uses a builder pattern for setup
e.g. change this: Ktorfit("https://example.com/", HttpClient {})
to this:
Ktorfit.Builder() .baseUrl("https://example.com/") .httpClient(HttpClient {}) .build()
Breaking Changes:
@headers now requires a vararg of String instead of an Array
e.g. you need to change from:
@headers( ["Authorization: token ghp_abcdefgh", "Content-Type: application/json"] )
to this:
@headers( "Authorization: token ghp_abcdefgh", "Content-Type: application/json" )
New Contributors
Thanks to @DatL4g, @hadiyarajesh, @DanielNovak for reporting bugs
Full Changelog: v1.0.0-beta08...v1.0.0-beta10