O'Reilly logo

Seven Web Frameworks in Seven Weeks by Frederic Daoud, Jack Moffitt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Day 3: Illuminating HTTP’s Dark Corners

Webmachine has a unique way of modeling HTTP requests as a state machine, but so far you’ve seen it handling things you’ve likely seen in most web libraries and frameworks. Let’s look at some things that Webmachine enables that aren’t usually found in its peers.

First, we’ll take a look at caching. The HTTP protocol has a lot of support for caching, including expiry and versioning. Webmachine exposes these features in resource functions, just like the other parts of HTTP you’ve already seen.

After caching, we’ll look at HTTP authorization. While some frameworks support authorization, most don’t support HTTP-based authorization and many don’t support any kind at all out of the box. For Webmachine, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required