From fccd4d380f2ea6854dc24c2d284abfc109a5e372 Mon Sep 17 00:00:00 2001 From: Ryan Murray Date: Mon, 6 Mar 2023 21:43:01 +0100 Subject: [PATCH] Implement Flusher in response --- core/response.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/response.go b/core/response.go index c8f3acf..d933731 100644 --- a/core/response.go +++ b/core/response.go @@ -82,6 +82,13 @@ func (r *ProxyResponseWriter) WriteHeader(status int) { r.status = status } + +// Flush implements the Flusher interface which is called by +// some implementers. This is intentionally a no-op +func (r *ProxyResponseWriter) Flush() { + //no-op +} + // GetProxyResponse converts the data passed to the response writer into // an events.APIGatewayProxyResponse object. // Returns a populated proxy response object. If the response is invalid, for example