분류 전체보기121 프론트엔드 개발자의 TIL #001 TIL #001 191102 토 오늘 배운 점 1. 서버에 Cookie를 업데이트하여 사용자 세션 유지 목적으로 주고받기 http request시 헤더를 활용하기 시작 class Cookie{ static String rawCookie = '0'; static void updateCookie(http.BaseResponse response) { rawCookie = response.headers['set-cookie']; if (rawCookie != null) { int index = rawCookie.indexOf(';'); headers['cookie'] = (index == -1) ? rawCookie : rawCookie.substring(0, index); } print('cookie: $ra.. 2019. 11. 2. 이전 1 ··· 18 19 20 21 다음