golang.org/x/build@v0.0.0-20240506185731-218518f32b70/devapp/gzip.go (about) 1 // Copyright 2018 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package main 6 7 import ( 8 "io" 9 "net/http" 10 ) 11 12 type gzipResponseWriter struct { 13 http.ResponseWriter 14 io.Writer 15 } 16 17 func (w *gzipResponseWriter) Write(b []byte) (int, error) { 18 return w.Writer.Write(b) 19 }