1
0
mirror of https://git.sr.ht/~adnano/go-gemini synced 2025-05-01 14:57:54 +02:00

handler: Mention when the context is canceled

This commit is contained in:
adnano 2021-02-23 19:01:10 -05:00
parent f8c7820d0f
commit feb0535483

@ -14,6 +14,9 @@ import (
// of the ServeGemini call. Handlers may also call ResponseWriter.Close to
// manually close the connection.
//
// The provided context is canceled when the client's connection is closed,
// when ResponseWriter.Close is called, or when the ServeGemini method returns.
//
// Handlers should not modify the provided Request.
type Handler interface {
ServeGemini(context.Context, ResponseWriter, *Request)