response.gno
0.42 Kb ยท 20 lines
1package mux
2
3import "strings"
4
5// ResponseWriter represents the response writer.
6type ResponseWriter struct {
7 output strings.Builder
8}
9
10// Write appends data to the response output.
11func (rw *ResponseWriter) Write(data string) {
12 rw.output.WriteString(data)
13}
14
15// Output returns the final response output.
16func (rw *ResponseWriter) Output() string {
17 return rw.output.String()
18}
19
20// TODO: func (rw *ResponseWriter) Header()...