~/talk

HTTP Patterns: PSR 7 & 15 By Example

Talkat Dutch PHP Conference 2021 · 2021-06-17..06-18· [php, microservices]
name:Tim Lytle
links:none on file
slides:none on file

Live coding shows PSR-7 request/response objects as immutable, how to evolve them with with methods, and how streams can be detached and transformed; PSR-15 middleware takes a ServerRequest and a handler so a simple middleware stack handler runs route, auth and logging middleware in order. The demo builds a tiny weather/traffic API, adds logging and bearer-token auth, emits responses with Laminas emitters, and uses the Tortilla/Burrito wrapper to add convenience methods — everything runs and is easy to unit test.

AI-written summary · about

  1. 0:00Introduction and overview
  2. 1:20Working with PSR-7 requests
  3. 6:04Immutability in PHP
  4. 11:37Handling attributes and routes
  5. 13:35Response management
  6. 16:49PSR-15 request handlers
  7. 22:21Middleware patterns
  8. 30:21Implementing middleware
  9. 37:10Middleware strategy
  10. 43:53Convenience libraries
  11. 49:30Closing remarks
~/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.