エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
Retrofit 2 — How to Add Query Parameters to Every Request
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Retrofit 2 — How to Add Query Parameters to Every Request
Adding query parameters to single requests is straight forward. You’re using the @Query annotatio... Adding query parameters to single requests is straight forward. You’re using the @Query annotation for your parameter declaration within the interface methods. This tells Retrofit to translate the provided query parameter name and value to the request and append the fields to the url. Recently, we’ve been asked how to add a query parameter to every request using an interceptor. If you’re having th