// CsvElement returns a CSV encoding of the HttpHdr struct.
// The string "HTTP_REQ" signifies the beginning of the HttpHdr generated on a
// HTTP request.  The string "HTTP_RESP" signifies the beginning of the HttpHdr
// generated by a HTTP response.
CsvElement returns a CSV encoding of the HttpHdr struct.
The string "HTTP_REQ" signifies the beginning of the HttpHdr generated on a
HTTP request.  The string "HTTP_RESP" signifies the beginning of the HttpHdr
generated by a HTTP response.
// CsvElement returns a CSV encoding of the HttpHdr struct . // The string " HTTP_REQ " signifies the beginning of the HttpHdr generated on a // HTTP request . The string " HTTP_RESP " signifies the beginning of the HttpHdr // generated by a HTTP response .
func (h *HttpHdr) CsvElement() string {
	if h.StatusCode == 0 {
		return fmt.Sprintf("\"HTTP_REQ\",\"%s\",\"%s\",\"%s\"",
			h.Proto,
			h.Method,
			h.RequestURI)
	}
	return fmt.Sprintf("\"HTTP_RESP\",\"%s\",%d",
		h.Proto,
		h.StatusCode)
}
func ( h * HttpHdr ) CsvElement ( ) string { if h . StatusCode == 0 { return fmt . Sprintf ( " \" \" \" \" \" \" \" \" " , h . Proto , h . Method , h . RequestURI ) } return fmt . Sprintf ( " \" \" \" \" " , h . Proto , h . StatusCode ) }
CsvElement returns a CSV encoding of the HttpHdr struct.
CsvElement returns a CSV encoding of the HttpHdr struct .