func (r *Response) End(buf string) {
	r.entity_body = buf
}
End send the body
package http
import (
	"log"
	"strconv"
)
type Response struct {
	content_length int
	entity_body    string
	headers        *http_headers
	con            *Connection
}
func newResponse(con *Connection) *Response {
	var resp Response
	resp.headers = newHeaders()
	resp.entity_body = ""
	resp.content_length = -1
	resp.con = con
	return &resp
}
func (r *Response) send() {
	if r.con.request.version == HTTP_VERSION_09 {
		r.send_http09_response()
	} else {
		r.send_response()
	}
}
func (r *Response) send_http09_response() {
	if r.con.status_code == 200 {
	} else {
	}
	r.send_all(r.entity_body)
}
func (r *Response) send_response() {
	h := r.headers
	h.http_headers_add("Server", "github.com/brewlin/net-protocol/1.00")
	h.http_headers_add("Connection", "close")
	if r.entity_body == "" {
		r.entity_body = default_success_msg
	}
	if r.con.status_code != 200 {
		r.send_err_response()
		return
	}
	r.build_and_send_response()
}