From 66a1b1f39a1e1d5499b548b36d18c8daa872d7da Mon Sep 17 00:00:00 2001 From: tjpcc Date: Sat, 28 Jan 2023 14:52:35 -0700 Subject: gopher support. Some of the contrib packages were originally built gemini-specific and had to be refactored into generic core functionality and thin protocol-specific wrappers for each of gemini and gopher. --- response.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'response.go') diff --git a/response.go b/response.go index 5943552..369c5d1 100644 --- a/response.go +++ b/response.go @@ -26,3 +26,10 @@ func (response *Response) Close() error { } return nil } + +// ResponseReader is an object which can serialize a response to a protocol. +type ResponseReader interface { + io.Reader + io.WriterTo + io.Closer +} -- cgit v1.2.3