Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

エラーの共通処理を挟み込める機構を追加 #202

Closed
say-ya-sigma opened this issue Aug 16, 2021 · 3 comments
Closed

エラーの共通処理を挟み込める機構を追加 #202

say-ya-sigma opened this issue Aug 16, 2021 · 3 comments
Assignees

Comments

@say-ya-sigma
Copy link

say-ya-sigma commented Aug 16, 2021

ミドルウエアをfetchが返ってからAPIClientがエラーを返すまでの間にも挟み込めるようにして、エラーに関する共通処理を仕込めるようになってほしい。

@say-ya-sigma say-ya-sigma changed the title エラー エラーの共通処理を挟み込める機構を追加 Aug 16, 2021
@moezakura
Copy link
Member

@moezakura
Copy link
Member

moezakura commented Jun 25, 2022

  • GoのContextのようなものをInjectionして、beforeMiddleware, afterMiddlewareのそれぞれで扱えるようにする
  • beforeMiddleware, afterMiddlewareでリクエストのBody、レスポンスのBodyをそれぞれ変更可能にする

@moezakura
Copy link
Member

move #322

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants