Update documentation
This commit is contained in:
parent
909e0c857a
commit
ca118681c0
4
fs.go
4
fs.go
@ -14,8 +14,8 @@ func init() {
|
||||
mime.AddExtensionType(".gemini", "text/gemini")
|
||||
}
|
||||
|
||||
// FileServer takes a filesystem and returns a Handler which uses that filesystem.
|
||||
// The returned Handler sanitizes paths before handling them.
|
||||
// FileServer takes a filesystem and returns a Responder which uses that filesystem.
|
||||
// The returned Responder sanitizes paths before handling them.
|
||||
func FileServer(fsys FS) Responder {
|
||||
return fsHandler{fsys}
|
||||
}
|
||||
|
@ -321,7 +321,7 @@ func Certificate(w *ResponseWriter, r *Request) (*x509.Certificate, bool) {
|
||||
return r.TLS.PeerCertificates[0], true
|
||||
}
|
||||
|
||||
// ResponderFunc is a wrapper around a bare function that implements Handler.
|
||||
// ResponderFunc is a wrapper around a bare function that implements Responder.
|
||||
type ResponderFunc func(*ResponseWriter, *Request)
|
||||
|
||||
func (f ResponderFunc) Respond(w *ResponseWriter, r *Request) {
|
||||
|
Loading…
Reference in New Issue
Block a user