Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
x/net/http2: support sendfile optimization #18204
This isn't really relevant for http2.
http2 is basically always over TLS (at least for common browsers, and for Go), where sendfile doesn't work.
But even if you used golang.org/x/net/http2 directly to implement h2c (cleartext http2), http2 has framing boundaries and a 16KB or so frame boundary, so you'd need to do many repeated small sendfile calls, which are much less beneficial.
So, closing this as not applicable.