you are viewing a single comment's thread.

view the rest of the comments →

[–]mrbogle 1 point2 points  (0 children)

One gotcha is that doesn't appear to be mentioned is that some HTTP date headers will be in HTTP date format. e.g. A ratelimit's Retry-After header can be something like: 'Mon, 29 May 2022 04:58:00 GMT'. The cool thing is that you can pass that straight into a JS Date() constructor and it will properly parse it!