aboutsummaryrefslogtreecommitdiff
path: root/handler.go
diff options
context:
space:
mode:
authorAdnan Maolood <[email protected]>2021-02-24 08:34:04 -0500
committerAdnan Maolood <[email protected]>2021-02-24 08:34:26 -0500
commit41c95add81adf38265f6f3dcbe88b0b0eb2cfa0e (patch)
treed4e4a41fcd058e0db6d04b9e1ef7e495373d75ee /handler.go
parentMove ResponseWriter Conn and TLS methods to Request (diff)
downloadgo-gemini-41c95add81adf38265f6f3dcbe88b0b0eb2cfa0e.tar.xz
go-gemini-41c95add81adf38265f6f3dcbe88b0b0eb2cfa0e.zip
Add unexported method to timeout writer
Diffstat (limited to 'handler.go')
-rw-r--r--handler.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/handler.go b/handler.go
index 5c7d9aa..7da523d 100644
--- a/handler.go
+++ b/handler.go
@@ -123,7 +123,6 @@ func (t *timeoutHandler) ServeGemini(ctx context.Context, w ResponseWriter, r *R
}
type timeoutWriter struct {
- ResponseWriter
wc io.WriteCloser
status Status
meta string
@@ -158,3 +157,5 @@ func (w *timeoutWriter) Flush() error {
func (w *timeoutWriter) Close() error {
return w.wc.Close()
}
+
+func (w *timeoutWriter) unexported() {}