diff options
| author | Adnan Maolood <[email protected]> | 2021-02-24 08:34:04 -0500 |
|---|---|---|
| committer | Adnan Maolood <[email protected]> | 2021-02-24 08:34:26 -0500 |
| commit | 41c95add81adf38265f6f3dcbe88b0b0eb2cfa0e (patch) | |
| tree | d4e4a41fcd058e0db6d04b9e1ef7e495373d75ee /handler.go | |
| parent | Move ResponseWriter Conn and TLS methods to Request (diff) | |
| download | go-gemini-41c95add81adf38265f6f3dcbe88b0b0eb2cfa0e.tar.xz go-gemini-41c95add81adf38265f6f3dcbe88b0b0eb2cfa0e.zip | |
Add unexported method to timeout writer
Diffstat (limited to 'handler.go')
| -rw-r--r-- | handler.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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() {} |