type inMemoryResponseWriter … func NewInMemoryResponseWriter() *inMemoryResponseWriter { … } func (r *inMemoryResponseWriter) Header() http.Header { … } func (r *inMemoryResponseWriter) RespCode() int { … } func (r *inMemoryResponseWriter) Data() []byte { … } func (r *inMemoryResponseWriter) WriteHeader(code int) { … } func (r *inMemoryResponseWriter) Write(in []byte) (int, error) { … } func (r *inMemoryResponseWriter) String() string { … }