aboutsummaryrefslogtreecommitdiff
path: root/gemini.go
diff options
context:
space:
mode:
authorAdnan Maolood <[email protected]>2021-02-20 00:49:21 -0500
committerAdnan Maolood <[email protected]>2021-02-20 00:49:21 -0500
commit5922cff2e52f0b13583aa57550569912903863d9 (patch)
tree6e1cfb1137affdc475a4e8cb3056126a0dd146e0 /gemini.go
parentserver: Clarify GetCertificate documentation (diff)
downloadgo-gemini-5922cff2e52f0b13583aa57550569912903863d9.tar.xz
go-gemini-5922cff2e52f0b13583aa57550569912903863d9.zip
Implement TimeoutHandler
Diffstat (limited to 'gemini.go')
-rw-r--r--gemini.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/gemini.go b/gemini.go
index 9908bbb..caffb1b 100644
--- a/gemini.go
+++ b/gemini.go
@@ -24,5 +24,9 @@ var (
// While any panic from ServeGemini aborts the response to the client,
// panicking with ErrAbortHandler also suppresses logging of a stack
// trace to the server's error log.
- ErrAbortHandler = errors.New("net/http: abort Handler")
+ ErrAbortHandler = errors.New("gemini: abort Handler")
+
+ // ErrHandlerTimeout is returned on ResponseWriter Write calls
+ // in handlers which have timed out.
+ ErrHandlerTimeout = errors.New("gemini: Handler timeout")
)