~/talk

Interception

Talkat droidcon New York 2023 · 2023-09-14..09-15· [security]
slides:none on file

Demonstrates concrete interception techniques: adding OKHttp interceptors to an HTTP client (pass-through, logging, modifying headers, short-circuit, caching) and shows a JSON S3 endpoint where the cache returns the saved response on the second call and a network interceptor reveals wire headers (User‑Agent, gzip) while app interceptors don’t. Shows reactive Kotlin flows (onEach, map) vs eager collections, Kotlin’s by-delegate to log/modify calls, and wrapping objects with Java dynamic proxies to prefix dates or intercept method invocations — all live-coded and working.

AI-written summary · about

  1. 0:00Welcome and introduction
  2. 1:09What is interception
  3. 3:52Interceptor categories
  4. 5:59OKHTTP interceptors demo
  5. 9:29Modifying interceptors
  6. 10:51Short circuit interceptors
  7. 11:33Caching interceptors
  8. 13:17Benefits of interceptor pattern
  9. 15:21Kotlin flows as interceptors
  10. 18:34Kotlin collections vs flows
  11. 20:18Interfaces enable interception
  12. 23:04Kotlin delegates as interceptors
  13. 26:31Delegate interceptor examples
  14. 27:55Why use interception
  15. 29:21Java reflection dynamic proxies
  16. 35:40When to use dynamic proxies
  17. 36:03Closing and Q&A
~/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.