News for hackers. Stuff that matters.
Re:Modern Node.js Patterns by jech on Monday August 04, 2025 @07:09AM (#44784226)
So you can say:

    let r = await fetch(...);
    if(!r.ok) ...
    let len = response.headers.get("Content-Length");
    if(!len || new Number(len) > 1000 * 1000)
        throw new Error("Eek!");

There are no comments on this comment yet.