code: func EncodeReadResponse(resp *prompb.ReadResponse, w http.ResponseWriter) error {
  	data, err := proto.Marshal(resp)
  	if err != nil {
  		return err
  	}
  
  	w.Header().Set("Content-Type", "application/x-protobuf")
  	w.Header().Set("Content-Encoding", "snappy")
  
  	compressed := snappy.Encode(nil, data)
  	_, err = w.Write(compressed)
  	return err
  }
docs: // EncodeReadResponse writes a remote.Response to a http.ResponseWriter.