func NewHTTPKey(tt kernel.TrafficType, cookie Cookie, method string, uri string) *HTTPKey {
	rep := HTTPKey{
		TrafficType: tt,
		Cookie:      cookie,
		Method:      [kernel.HTTPMaxMethodLength]byte{},
		URI:         [kernel.HTTPMaxURILength]byte{},
	}
	copy(rep.Method[:], method)
	copy(rep.URI[:], uri)
	return &rep
}
// NewHTTPKey - Creates a new HTTPKey and encodes the method and URI appropriately
Creates a new HTTPKey and encodes the method and URI appropriately
// NewHTTPKey - Creates a new HTTPKey and encodes the method and URI appropriately
func NewHTTPKey(tt kernel.TrafficType, cookie Cookie, method string, uri string) *HTTPKey {
	rep := HTTPKey{
		TrafficType: tt,
		Cookie:      cookie,
		Method:      [kernel.HTTPMaxMethodLength]byte{},
		URI:         [kernel.HTTPMaxURILength]byte{},
	}
	copy(rep.Method[:], method)
	copy(rep.URI[:], uri)
	return &rep
}
func NewHTTPKey ( tt kernel . TrafficType , cookie Cookie , method string , uri string ) * HTTPKey { rep := HTTPKey { TrafficType : tt , Cookie : cookie , Method : [ kernel . HTTPMaxMethodLength ] byte { } , URI : [ kernel . HTTPMaxURILength ] byte { } , } copy ( rep . Method [ : ] , method ) copy ( rep . URI [ : ] , uri ) return & rep }
Creates a new HTTPKey and encodes the method and URI appropriately
Creates a new HTTPKey and encodes the method and URI appropriately