amplify-swift icon indicating copy to clipboard operation
amplify-swift copied to clipboard

Feature Request: Expose URLResponse in success case of REST APIs

Open SwiftNativeDeveloper opened this issue 3 years ago • 1 comments

Which AWS Services is the feature request for?

API

Is your feature request related to a problem? Please describe. I cannot inspect response headers or status code if the response code is [200..300)--the API signature only returns Result<Data, Error>.

Describe the solution you'd like I would like to be able to inspect the URLResponse object returned by the system so I can grab data contained within headers as well as the response code.

Describe alternatives you've considered Moving away from AWS because this is an important thing to me. My backend sends me additional headers that I should be inspecting.

Additional context None

SwiftNativeDeveloper avatar Jun 08 '22 01:06 SwiftNativeDeveloper

@brennanMKE I couldn't find the issue handy to bump so I made a new one. Sorry if it is duplicate.

SwiftNativeDeveloper avatar Jun 08 '22 01:06 SwiftNativeDeveloper

Marking as duplicate for https://github.com/aws-amplify/amplify-swift/issues/1435

royjit avatar Jun 22 '23 20:06 royjit