DPC2021: HTTP Patterns: PSR 7 & 15 By Example - Tim Lytle

Вызовы кодера-новичка
Вызовы кодера-новичка

Chances are your code already uses one of the HTTP PSRs in some way. In this 'no slides, just code' session we'll take a hands on look at how HTTP Messages (PSR-7) and HTTP Handlers (PSR-15) work, and how they can be properly leveraged. HTTP messages provide a considerable advantage over global variables, and their immutability actually makes it easier to confidently modify an incoming request or an outgoing response in your web application. HTTP handlers are a common concept in micro-frameworks, and PSR-15 provides a way to create reusable framework-agnostic code. But that's not all it provides. The HTTP handler interface can be used to inject the concept of middleware into an existing application without having to introduce a new framework. Or to easily build a lightweight application without any framework. Take a guided tour through both PSRs, and find out how you can used them effectively in your current codebase. What you'll learn from this talk: - the value in immutable HTTP Request objects - how to evolve an HTTP Request object - how to extend a library's HTTP Request object - how a middleware stack works - how easy it is to use PSR-7 & PSR-15 without any framework This talk was given at the Dutch PHP Conference in 2021, organised and hosted by Ibuildings. Visit https://phpconference.nl or https://ibuildings.nl for more information.


Keywords (if available)
Comments

Users Comments

Related Videos

Related videos

Thumbnail

? แจกสคริปต์ใหม่ล่าสุด Blox Fruits [?อีเว้นท์] ออโต้ฟามไวๆLv1-2450/ฟังชั่นโครตเยอะ(รองรับทุกตัวรัน)

————————————————————————————————— ? rezystore ? ? Wed : https://rezystore.ovdc.xyz/?page=home | ขายไก่ตันรา...

By Вызовы кодера-новичка

Duration: 3:14

Thumbnail

PSR 7 Tutorial Simplifying HTTP Messages with PHP FIG

Learn how to simplify working with HTTP messages in PHP using PSR-7, the PHP Standard Recommendation 7. In this tutorial, we explore the key features of PSR-7, including immutable message instances, headers, body handling, and more. Discover how to i...

By PHP Фреймворки

Duration: 6:37

Thumbnail

DPC2021: Securing PHP APIs with Decentralised Identity Tokens - Mohammad Shahbaz Alam

The APIs keeps changing, and the programming languages like PHP and Frameworks like Laravel are shifting the paradigm of API consumption. We often dedicate a lot of time to craft powerful APIs but overlook proper security measures. Setting up an auth...

By Молодежные тренды PHP

Duration: 42:13

Thumbnail

DPC2021: Beyond Relational: Data storage for modern applications - Mike Lehan

A relational database has long been the go-to choice for PHP application developers, but as applications grow the data doesn't always fit the relational model. Perfect normalised data structures have their place, but in the world of rapid delive...

By Архивное волшебство

Duration: 40:16

Thumbnail

DPC2021: PHP Enums - Ayesh Karunaratne

PHP 8.1 brings Enums, one of the most requested features in PHP. Enums, or Enumerations, allow creating strict and type-safe structures for fixed values. An Enum structure can hold a number of values that can also be backed with integer or string val...

By TypeScript и нативные приложения

Duration: 40:08

Thumbnail

Немного о PSR-7

Презентация: https://docs.google.com/presentation/d/17mlS8p4gSqmRXZFVrNriZNZTxDXR8NwXPIaKVDX-_EE/edit?usp=sharing

By R.class Tech

Duration: 19:57

Thumbnail

Hannes Van De Vreken: PSR-7 HTTP messages in the wild

"PSR-7 describes common interfaces for representing HTTP messages. HTTP messages are the foundation of web development. Web browsers and HTTP clients such as cURL create HTTP request messages that are sent to a web server, which provides an HTTP...

By JavaScript и работа с API

Duration: 51:29

Thumbnail

Pattern ADR, PSR-7, actions framework-agnostic et autowiring avec Symfony - Kévin Dunglas

Cette vidéo vous a plu ? Adhérez à l'AFUP pour soutenir son activité : http://afup.org/pages/site/?route=vie-associative/56/devenir-membre Nous cherchons des sponsors et des conférenciers pour le prochain événement AFUP : http://event.af...

By Программирование PHP и электронная коммерция

Duration: 37:05

Thumbnail

DPC2019: Beyond design patterns and principles - writing good OO code - Matthias Noback

"Beyond design patterns and principles - writing good OO code by Matthias Noback Of course, you should read all you can about SOLID, Design patterns, Patterns of Enterprise Application Architecture, etc. Once you have a basic understanding of t...

By Полное Руководство по PHP

Duration: 45:14

Thumbnail

Testing DPC Tweaks to Resolve ntoskrnl.exe DPC Spikes & Reduce DPC Latency

✅ Join this channel to get access to perks: https://www.youtube.com/channel/UCQs3Jo_n4DbMislIzSDMWwg/join ? PC TWEAKING SERVICES System Performance boost: FPS Boost . Low Latency , Network Management , BIOS Tuning and more! More info below ? ...

By Электронные устройства

Duration: 5:31

Thumbnail

STUART HERBERT - BEYOND PSR-7: DESIGN YOUR OWN MIDDLEWARE USING THE INSTRUCTION BUS

PSR-7 Middleware gives us a standard for writing modules that deal with HTTP requests. Using something like Slim or Zend Expressive, you can quickly and easily chain these modules together to save you time and effort. That’s all well and good, but ...

By PHP для всех: создаем свои веб-приложения

Duration: 56:45

Thumbnail

Components, PSR-7, and Middleware: Zend Framework 3 - @ZendCon 2015 Session

Presented by Matthew Weier O'Phinney. Zend Framework has split into a set of component libraries, and now includes both a PSR-7 implementation and middleware, providing the ultimate in flexibility, should you need extensibility, usability, or pe...

By PHP и cookie

Duration: 41:24

Thumbnail

?TRUE SIGHT ПОЛНОСТЬЮ НА РУССКОМ ЯЗЫКЕ : TEAM SPIRIT vs PSG.LGD | THE INTERNATIONAL by @ItsDota2RU

TRUE SIGHT ПОЛНОСТЬЮ НА РУССКОМ ЯЗЫКЕ : TEAM SPIRIT vs PSG.LGD | THE INTERNATIONAL 2021 ?Подпишись На Наш КаНаЛ БратишКа http://goo.gl/8dA5ip ?Твой лайк и комментарий для на...

By Как правильно выбирать одежду

Duration: 97:47

Thumbnail

Всё о PSR. Обзор стандартов PSR

Сегодняшний ролик посвящён PSR стандартам рекомендаций. Казалось бы этим стандартам уже много лет и о них должен знать каждый PHP разработ...

By Просто о Laravel. CutCode

Duration: 36:58

Thumbnail

DELL 7567 DPC LATENCY WINDOWS 7

By Простые шаги к пониманию компьютеров

Duration: 1:02

Thumbnail

How to improve DPC Latency Checker times?

How to improve DPC Latency Checker times? Helpful? Please support me on Patreon: https://www.patreon.com/roelvandepaar With thanks & praise to God, and with thanks to the many people who have made this project possible! | Content (except music...

By Центральный Процессор

Duration: 2:14

Thumbnail

#PSR-13 part 2. #PHP practice

Обзор стандарта PSR-13. Часть 2. Практика на PHP. #rest #restful #restful api #hal #hypermedia #php #phpstorm #docker #psr,#code review #php8 #php7 #psr-13 #development #oop #mvc #it #cources #free cources #пхп #раз...

By Новичок в Мире Vue: С чего начать?

Duration: 17:15

Thumbnail
Thumbnail

Вам звонит мошенник — Тайны Чапман (17.09.2024)

ПОДПИСЫВАЙТЕСЬ: ▶️RUTUBE - https://rutube.ru/feeds/rentv/ ▶️ВКОНТАКТЕ - https://vk.com/rentv_channel ▶️ОК - https://ok.ru/rentvchannel ▶️ДЗЕН - https://dzen.ru/rentvchannel ▶️TELEGRAM - https://t.me/re...

By РЕН ТВ

Duration: 46:03

Thumbnail

Nvidia DPC Latency Fix and Optimization Guide - Check description for updates and time codes

Audio crackling doesn't necessarily mean that you have dpc issues. But if you suffer from either of them definitely give this a try. ↓Timecodes in description.↓ [UPDATE: Users reported great improvements by disablind USB 3.0 in the bios. Yo...

By Секреты Творческого Сотворения

Duration: 9:21