CodingAleCR / http_interceptor

A lightweight, simple plugin that allows you to intercept request and response objects and modify them if desired.
MIT License
134 stars 67 forks source link

background json compute #47

Closed ac130kz closed 3 years ago

ac130kz commented 3 years ago

ResponseData object is built with a String based body, however I'd like to use background json decoding, which returns a Json object (examples: official, dio_flutter_transformer). How do I implement my interceptor?

issue-label-bot[bot] commented 3 years ago

Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.63. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

CodingAleCR commented 3 years ago

Hi, this is a really nice question, as of right now, this would fit into the feature request category since the response interceptor is static typed to a String class. I will add this to the near future as I believe it is the desired behavior of intercepting a response.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.