aboutsummaryrefslogtreecommitdiff
path: root/response.go
diff options
context:
space:
mode:
authorAdnan Maolood <[email protected]>2021-02-21 16:06:56 -0500
committerAdnan Maolood <[email protected]>2021-02-21 16:06:56 -0500
commitc3feafa90b854ae7e724b4748db9b27dcefc8d22 (patch)
tree47e2ed6f16821380d9f4717c0821a7b354efafc1 /response.go
parentserver: Don't close pending connections after Shutdown (diff)
downloadgo-gemini-c3feafa90b854ae7e724b4748db9b27dcefc8d22.tar.xz
go-gemini-c3feafa90b854ae7e724b4748db9b27dcefc8d22.zip
Move Flush back to ResponseWriter
Diffstat (limited to 'response.go')
-rw-r--r--response.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/response.go b/response.go
index d62b8cf..1090ed5 100644
--- a/response.go
+++ b/response.go
@@ -187,15 +187,7 @@ type ResponseWriter interface {
// The provided meta must not be longer than 1024 bytes.
// Only one header may be written.
WriteHeader(status Status, meta string)
-}
-// The Flusher interface is implemented by ResponseWriters that allow a
-// Gemini handler to flush buffered data to the client.
-//
-// The default Gemini ResponseWriter implementation supports Flusher,
-// but ResponseWriter wrappers may not. Handlers should always test
-// for this ability at runtime.
-type Flusher interface {
// Flush sends any buffered data to the client.
Flush() error
}