~/talk

Just Enough Plug to Build a Web server

Talkat ElixirConf EU 2017 · 2017-05-04..05-05· [elixir-and-erlang]
slides:none on file

Claims how to implement Plug by showing code that wires :gen_tcp into Plug’s API and builds a minimal server called stupefy simple web server that actually runs on port 4400. Demonstrates parsing HTTP/1.1 lines, assembling a Plug.Conn struct, passing an adapter as a tuple (module, payload), and implementing the core of Plug with only six adapter callbacks. The demo succeeds: curl gets HelloWorld back.

AI-written summary · about

  1. 0:00Introduction
  2. 1:10About ZSimple
  3. 2:27ZSimple specification
  4. 2:50Interface
  5. 3:35Plug
  6. 4:26Phoenix Router
  7. 5:16Web Server
  8. 6:56HTTP
  9. 9:28Listen
  10. 12:17Waiting
  11. 12:48Search
  12. 13:40Status Line
  13. 15:16Connection
  14. 17:31FlatCon
  15. 22:50Build Connection
  16. 24:48Response Function
  17. 25:14Clock
  18. 28:23Response Phase
  19. 31:15Adapters
  20. 31:52Send response
  21. 32:53RequestBody
  22. 34:13Learning from Elixir
  23. 35:08Passing around modules
  24. 36:46API
  25. 37:33Demo
~/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.