func (o *GetPeerEntryOK) 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 peer_entry
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const GetPeerEntryOKCode int = 200
type GetPeerEntryOK struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *GetPeerEntryOKBody `json:"body,omitempty"`
}
func NewGetPeerEntryOK() *GetPeerEntryOK {
	return &GetPeerEntryOK{}
}
func (o *GetPeerEntryOK) WithConfigurationVersion(configurationVersion string) *GetPeerEntryOK {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *GetPeerEntryOK) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *GetPeerEntryOK) WithPayload(payload *GetPeerEntryOKBody) *GetPeerEntryOK {
	o.Payload = payload
	return o
}
func (o *GetPeerEntryOK) SetPayload(payload *GetPeerEntryOKBody) {
	o.Payload = payload
}