Skip to content

Alamofire

강병민 (Byungmin Kang) edited this page Nov 6, 2020 · 2 revisions

참고 사이트 raywenderlich

네트워크와 관련된 기본 개념

HTTP is an application protocol used to transfer data from a server to a client, such as a web browser or an iOS app. HTTP defines several request methods that the client uses to indicate the desired action. For example:

GET: Retrieves data, such as a web page, but doesn’t alter any data on the server.

HEAD: Identical to GET, but only sends back the headers and not the actual data.

POST: Sends data to the server. Use this, for example, when filling a form and clicking submit.

PUT: Sends data to the specific location provided. Use this, for example, when updating a user’s profile.

DELETE: Deletes data from the specific location provided

REST, or REpresentational State Transfer, is a set of rules for designing consistent web APIs. REST has several architecture rules that enforce standards like not persisting states across requests, making requests cacheable and providing uniform interfaces. This makes it easy for app developers to integrate the API into their apps without having to track the state of data across requests.

Alamofire을 사용한 이유?

처음에는 URLSession를 이용하려 했는데, networking관련해서 투자할 시간이 많지 않아서 가장 인기있고, 실제로도 많이 쓰는 Alamofire를 선택했습니다 Json 파싱 부분또한 codable을 이용하여 간편하게 진행 할 수 있었습니다.

Clone this wiki locally