~/talk

Rolling your own Network Stack

Talkat UIKonf 2019 · 2019-05-26..05-29· [networking, embedded-and-hardware]
links:none on file
slides:none on file

Shows a concrete Swift network stack: uses URLSession, Codable and generics to build an API router enum that produces URLRequests, a NetworkService wrapping an OperationQueue, and a generic NetworkOperation subclass that decodes Decodable models (example: New York Times Bestsellers). Adds practical extensions: request adapter for auth headers, retry logic for OAuth token refresh, custom URLSession for pinning/caching, and custom decoders for weird JSON. Stack replaced an existing client at Coop to support a second API and works in production.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 2:00From objective-c to swift
  3. 4:56Naive networking approach
  4. 7:39Implementing an API router
  5. 10:38Service and operation layers
  6. 14:26Generic networking
  7. 16:57Advanced networking tips
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.