func (r *Request) AddStandardHeaders(size int) {
	r.headers.AddStandard(size)
}
AddStandardHeaders adds standard headers to the request, if they don't exist

This will add Content-Length and the proper Content-Type
package http
import (
	"bytes"
	"errors"
	"fmt"
	"net/http"
	"net/url"
	"github.com/fzipi/go-ftw/utils"
	"github.com/rs/zerolog/log"
)
type Destination struct {
	DestAddr string `default:"localhost"`
	Port     int    `default:"80"`
	Protocol string `default:"http"`
}
type RequestLine struct {
	Method  string `default:"GET"`
	Version string `default:"HTTP/1.1"`
	URI     string `default:"/"`
}
func (rl RequestLine) ToString() string {
	return fmt.Sprintf("%s %s %s\r\n", rl.Method, rl.URI, rl.Version)
}
type Request struct {
	requestLine         *RequestLine
	headers             Header
	cookies             http.CookieJar
	data                []byte
	raw                 []byte
	autoCompleteHeaders bool
}
func NewRequest(reqLine *RequestLine, h Header, data []byte, b bool) *Request {
	r := &Request{
		requestLine:         reqLine,
		headers:             h.Clone(),
		cookies:             nil,
		data:                data,
		raw:                 nil,
		autoCompleteHeaders: b,
	}
	return r
}
func NewRawRequest(raw []byte, b bool) *Request {
	r := &Request{
		raw:                 raw,
		autoCompleteHeaders: b,
	}
	return r
}
func (r *Request) SetAutoCompleteHeaders(value bool) {
	r.autoCompleteHeaders = value
}
func (r Request) WithAutoCompleteHeaders() bool {
	return r.autoCompleteHeaders
}
func (r *Request) SetData(data []byte) error {
	if utils.IsNotEmpty(r.raw) {
		return errors.New("ftw/http: raw field is already present in this request")
	}
	r.data = data
	return nil
}
func (r *Request) SetRawData(raw []byte) error {
	if utils.IsNotEmpty(r.data) {
		return errors.New("ftw/http: data field is already present in this request")
	}
	r.raw = raw
	return nil
}
func (r Request) Data() []byte {
	return r.data
}
func (r Request) RawData() []byte {
	return r.raw
}
func (r Request) Headers() Header {
	if r.headers == nil {
		return nil
	}
	return r.headers
}
func (r *Request) SetHeaders(h Header) {
	r.headers = h
}
func (r *Request) AddHeader(name string, value string) {
	r.headers.Add(name, value)
}