Releases: TheRakiburKhan/RKAPIService
Releases · TheRakiburKhan/RKAPIService
Multipart/formdata added
Added
ContentType
enum added for HTTP ContentType. It can be used inadditionalHeader
parameter of a request.- Added support for attachment upload as multipart/formdata as request body
Fixed
- Resolved infinite loop problem
Resolved Issue #3
Fixed
Resolved issue #3
Added Support for Dictionary [String: Any]
Added
Authorization
enum added for HTTP Authorization. It can be used inadditionalHeader
parameter of a request.- Added support for Dictionary type
[String: Any]
as request body
Removed
RKAPIServiceProtocol
is removed
Fixed
HTTPHeader
inaccessible bug fix
Additional Header in GET request is now optional
Changed
- Changed
HTTPHeader
in HTTPGET
request from required to optional
Completion Handler deprecated
Bug Fix
HTTPHeader
initialisation bug fixed.
iOS 13.0 and macOS 10.15
- completion handler is now deprecated and encouraged to use
async/await
orCombine Publisher
instead.
iOS 15.0 and macOS 12.0
- completion handler is now obsoleted and must use
async/await
orCombine Publisher
instead.
2.3.0 - Added HTTPHeader
Added HTTPHeader if additional headers are required.
2.2.2
- Updated Quick Help guide for methods
- Added polymorfic methods for direct data manipulation.
RKAPIHelper
methods not accessible issue solved.
2.2.1 - Added RKAPIHelper
- Added
RKAPIHelper
which has helper functions to buildURL
buildURL(scheme: String, baseURL: String, portNo: Int?, path: String?, queries: [URLQueryItem]?)
returns anURL?
buildURL(string: String, filter: CharacterSet)
returns anURL?
Added URLSession.dataTaskPublisher
- Changed
RKAPIService.shared
configuration formURLSessionConfiguration.default
toURLSessionConfiguration.default
- Changed all URL parsameter to optional form all
fetchItems(url:)
methods - Added
URLSessionDataTaskPublisher
formCombine
support starting form iOS 13.0 and macOS 10.15
Added custom HTTPStatus Code support
-
HTTPStatusCode
has now two cases,standard(statusCode: StandardCode)
andcustom(customCode: Int)
. Previously found allHTTPStatusCode
case is now encapsulated inHTTPStatusCode.StandardCode
. -
New public variable
statusCode: Int
added toHTTPStatusCode
which will return the original URL Status Code.