mirror of
https://github.com/golang/go
synced 2024-11-18 14:44:41 -07:00
65d4723b49
These new apis are analogous to ServeFile, FileServer and NewFileTransport respectively. The main difference is that these functions operate on an fs.FS.
Fixes #51971
Change-Id: Ie56b245b795eeb7edf613657578592306945469b
GitHub-Last-Rev: 26e75c0368
GitHub-Pull-Request: golang/go#61641
Reviewed-on: https://go-review.googlesource.com/c/go/+/513956
Run-TryBot: Damien Neil <dneil@google.com>
Reviewed-by: David Chase <drchase@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
4 lines
198 B
Plaintext
4 lines
198 B
Plaintext
pkg net/http, func ServeFileFS(ResponseWriter, *Request, fs.FS, string) #51971
|
|
pkg net/http, func FileServerFS(fs.FS) Handler #51971
|
|
pkg net/http, func NewFileTransportFS(fs.FS) RoundTripper #51971
|