일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- Datastore
- ViewModel
- themes.xml
- Jetpack Compose
- TypeConverter
- nav_graph
- Navigation Component
- Livedata
- Binding Adapter
- 면접
- 일렉트론
- 안드로이드
- android studio
- Android
- 주석
- asLiveData()
- 스플래시
- 개발자
- 테마
- electron
- recyclerview
- imageview
- hilt
- fragment
- BottomNavigationView
- room
- 취업
- Safe Args
- Gradle
- kotlin
Archives
- Today
- Total
목록retrofit (1)
나만 보는 일기장
[Retrofit] Header Interceptor 추가
@Singleton @Provides fun provideHeaderInterceptor(): Interceptor = Interceptor { chain -> chain.run { proceed( request() .newBuilder() .addHeader("x-rapidapi-host", API_HOST) .addHeader("x-rapidapi-key", API_KEY) .build() ) } } 를 통해 모든 요청에 특정한 헤더 등을 추가할 수 있습니다.
개발/Android
2022. 3. 2. 16:19