PHPnews.io

Overview for 'evertpot'


Better typing with Ketting

Written by Evert Pot / Original link on Oct. 21, 2019

Ketting is a generic hypermedia client that supports HAL, HTML, JSON-API, and HTTP Links (and soon also Siren). Version 5 is currently in development, and one of the major new features is much deeper support for Typescript typing. Here’s how it works. Normally to get to a resource, you start with a…


Structured headers NPM package: new version

Written by Evert Pot / Original link on Oct. 4, 2019

I just updated my structured-headers package to be up to date with the latest verison of the Structured headers IETF draft. If you do anything with HTTP, structured headers might be something you have to deal with in the future. Many HTTP headers encode complex values, and many HTTP headers have th…


Authentication relation types

Written by Evert Pot / Original link on Oct. 2, 2019

When you’re building Hypermedia-style services, you might have used the IANA link relation types list to find appropriate, generic keywords for your rel="" attributes. This list is the official registry for relation types such as collection, next, canonical and others. I had a need for adding a few…


Typescript definitions for HAL and Link Hints

Written by Evert Pot / Original link on Oct. 1, 2019

I’ve been working a lot with HAL and lately also the link hints draft, and I found myself writing the typescript definitions for them one time too many. So yesterday I published a tiny NPM package, so I could do it once and never again. Github project. npmjs.com package. Because there’s really not…


The end of the HTTP series

Written by Evert Pot / Original link on Sep. 18, 2019

Last year I quit my job at Yelp, and wanted to be a more active blogger again. I thought it would be a neat idea to write 1 post per week, one for each HTTP status. This was quite an undertaking, and I ended up having to write 67 blog posts, one each week. Some stats: 67 HTTP statuses. 70 blog post…