Get icon indicating copy to clipboard operation
Get copied to clipboard

Web API client built using async/await

Results 14 Get issues
Sort by recently updated
recently updated
newest added

added OptionalDecoding protocol to support returning nil in case of empty data in response

Hi 👋🏻 When declaring a method with an optional response body (see example), the call only results in a decoding error because the method tries to decode an empty response....

feature

Hello 👋🏻 After switching the compiler option `Strict Concurrency Checking` to `Complete`, I received the warning below: ```text ⚠️ Non-sendable type '(inout APIClient.Configuration) -> Void' passed in call to nonisolated...

enhancement

It is handy we can set our own custom URLSessionDelegate in APIClient init. ``` Swift self.api = APIClient(baseURL: baseURL, { $0.sessionDelegate = ... }) ``` But custom delegate methods are...

question

As title, is there a throttle feature to avoid duplicate calls?

question

Prototype of the new Sendable-compliant APIs to address new Xcode 14.3 warnings and make the framework easier to user. ```swift private struct User: Decodable {} func usage() async throws {...

Our api server gives a 422 response when validating request params: ``` json { "errors": [{ "detail": "Missing field: anon_id" }] } ``` However, `Get` only supplies the error code:...

feature

Could you please add method to `APIClientDelegate` for post processing raw response?

feature

Hey! I'm not sure when this changed, but I'm almost totally sure this was working a few months ago, I make a request using ```swift api.send(Paths.profiles.userId(userID).get, configure: { $0.cachePolicy =...

Consider the following, when this library is used together with CreateAPI: https://github.com/CreateAPI/CreateAPI ```Swift func myInfo() async throws -> [Paths.Info.My.GetResponseItem] { let request = Paths.info.my.get let response = try await api.send(request)...