News for hackers. Stuff that matters.
Re:Rust is a hard way to make a web API by Thaxll on Friday January 15, 2021 @10:21PM (#25799730)
I've never seen that in 5+ years of Go.

1) You don't have to touch Content-length since it's computed. https://golang.org/pkg/net/http/#ResponseWriter

2) ETAGS, expire, ect ... are not managed by the std lib, as it should not.

Re:Rust is a hard way to make a web API by tyingq on Saturday January 16, 2021 @01:02AM (#25800443)
On 1), Looked, and yes, you're right, and it seems to have been there from the beginning. I think I may have been thinking of node.js on the Content-length having to be a deliberate action.