통신에서는 객체 그 자체를 통신할 수 없다. 하여 컴퓨터는 파일을 다른 컴퓨터로 보내기 전 통신이 가능하고 나중에 재구성할 수 있는 포맷으로 변환해주어야 한다. 우리는 이 과정을 Serialization(직렬화)라고 한다.
이를 다시 객체로 바꿔주는것은 Deserialization(역직렬화)라고 한다.
Moshi는 Json과 객체 사이의 직렬화와 역직렬화를 쉽고 안전하게 할 수 있도록 돕는 라이브러리이다.
HTTP is the way modern applications network. It’s how we exchange data & media. Doing HTTP efficiently makes your stuff load faster and saves bandwidth.
OkHttp is an HTTP client that’s efficient by default:
https://android-developers.googleblog.com/2011/09/androids-http-clients.html