func (o *GetSpoeMessageOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	configurationVersion := o.ConfigurationVersion
	if configurationVersion != "" {
		rw.Header().Set("Configuration-Version", configurationVersion)
	}
	rw.WriteHeader(200)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
WriteResponse to the client
package spoe
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const GetSpoeMessageOKCode int = 200
type GetSpoeMessageOK struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *GetSpoeMessageOKBody `json:"body,omitempty"`
}
func NewGetSpoeMessageOK() *GetSpoeMessageOK {
	return &GetSpoeMessageOK{}
}
func (o *GetSpoeMessageOK) WithConfigurationVersion(configurationVersion string) *GetSpoeMessageOK {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *GetSpoeMessageOK) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *GetSpoeMessageOK) WithPayload(payload *GetSpoeMessageOKBody) *GetSpoeMessageOK {
	o.Payload = payload
	return o
}
func (o *GetSpoeMessageOK) SetPayload(payload *GetSpoeMessageOKBody) {
	o.Payload = payload
}