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

Custom HTTP Interceptors

Open dnys1 opened this issue 3 years ago • 6 comments

Describe the bug Support for custom HTTP interceptors, as is available in both iOS and Android

  • #671
  • #749

dnys1 avatar Aug 11 '21 22:08 dnys1

+1

martinzuccotti avatar Jan 10 '22 16:01 martinzuccotti

+1

Nut41tank avatar Jul 26 '22 04:07 Nut41tank

+1 this is required feature

simranjeet09 avatar Jul 28 '22 14:07 simranjeet09

+1 this will be very useful

uppuluriaditya avatar Aug 03 '22 14:08 uppuluriaditya

Hello everyone - If this is a feature you would like to see implemented, please give the original issue description a 👍 . We use this to quickly get an idea of how much interest there is in a feature. The "+1" comments can easily be missed whereas the 👍 count on the original issue description is easily viewable. Thanks.

Jordan-Nelson avatar Aug 03 '22 15:08 Jordan-Nelson

@Jordan-Nelson we have a product developed based on amplify-flutter. Both of the features mentioned in ticket #798 are required features for the product. Somehow we have figured out a workaround but it has made our code a mess as we need to make a lot of changes just to support multiple tokens and other auth stuff.

Android and iOS both have support for these features I am wondering why we are waiting for more votes / likes /comments on this feature request. It would make sense if amplify did not had this feature available on other platforms.

simranjeet09 avatar Aug 03 '22 16:08 simranjeet09

Hello @Jordan-Nelson, I'm using Rekognition via a rest API call to a lambda. The thing is, processing the images can take more than 10s and I get a timeout. My only solution is to call from the lambda another lambda and directly respond to the request. So increasing the timeout would ease a lot my environment.

Simon-PumpAndUp avatar Oct 02 '22 16:10 Simon-PumpAndUp

Hello - We have recently released a new developer preview version of the API category (amplify_flutter v1.0.0-next.1). This new version is a full re-write of the API category in dart, and it supports Mobile, Desktop, and Web. The new version supports custom headers in a GraphQLRequest and request interceptors. You can see more info/examples in the docs. I will update this issue again once this new version is out of developer preview.

Let me know if you have any questions!

ragingsquirrel3 avatar Nov 18 '22 20:11 ragingsquirrel3

Support for this was added in v1.0.0 of Amplify Flutter, which is now stable. You can see the docs on customizing http requests here.

This release also includes web and desktop support for Auth, API, Analytics, and Storage. You can see the list of new features and bug fixes in the release notes, and see more details on how to migrate in the upgrade guide.

Jordan-Nelson avatar Apr 17 '23 19:04 Jordan-Nelson