Overview for 'evertpot'
Written by Evert Pot
/ Original link
on Oct. 28, 2019
Most of the Javascript code I write heavily depends on promises and async/await. One of the issues I ran into, is that I would like to offer users of my library a fluent interface, but do so with async/await. To give an example, consider the following function: async function getArticles() { const…
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…
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…
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…
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…
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…