Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
29 | 30 |
Tags
- Swift
- RN업데이트
- javascript
- RN아키텍쳐
- react-native-image-picker
- Throttle
- 비동기
- motion.div
- promise.all
- react-native-permissions
- React-Native업데이트
- axios
- await
- react native
- ios
- private-access-to-photos
- CS
- async
- Hash-table
- rn
- no-permission-handler-detected
- named type
- react-native
- hydration mismatch
- RN새로운아키텍쳐
- react
- animation
- Promise
- react animation
- debounce
Archives
- Today
- Total
목록instance (1)
하루살이 개발일지

axios instanceaxios instance는 HTTP 요청 설정을 미리 정의하여 재사용할 수 있도록 만든 객체이다.생성하려면 axios.create 메서드를 사용한다.const instance = axios.create({ baseURL: '', timeout: 1000, headers: {'X-Custom-Header': 'foobar'}});baseURL : 모든 요청에 대해 기본으로 사용할 urltimeout : 요청이 중단되기 전 대기할 시간 (밀리초 단위)headers : 모든 요청에 공통으로 사용할 HTTP 헤더 요청 및 응답 처리인스턴스를 통해 요청을 보낼 때 기본 설정이 자동으로 적용된다. 인스턴스에 일반 axios 메서드 (get, post, put, delete..
웹개발/React
2023. 7. 4. 11:02