// JsonElement returns a JSON encoding of the HttpHdr struct.
JsonElement returns a JSON encoding of the HttpHdr struct.
// JsonElement returns a JSON encoding of the HttpHdr struct .
func (h *HttpHdr) JsonElement() string {
	if h.StatusCode == 0 {
		return fmt.Sprintf("\"httphdr\":{\"proto\":\"%s\",\"method\":\"%s\",\"request\":\"%s\"}",
			h.Proto,
			h.Method,
			h.RequestURI)
	}
	return fmt.Sprintf("\"httphdr\":{\"proto\":\"%s\",\"statusCode\":%d}",
		h.Proto,
		h.StatusCode)
}
func ( h * HttpHdr ) JsonElement ( ) string { if h . StatusCode == 0 { return fmt . Sprintf ( " \" \" \" \" \" \" \" \" \" \" \" \" \" \" " , h . Proto , h . Method , h . RequestURI ) } return fmt . Sprintf ( " \" \" \" \" \" \" \" \" " , h . Proto , h . StatusCode ) }
JsonElement returns a JSON encoding of the HttpHdr struct.
JsonElement returns a JSON encoding of the HttpHdr struct .