// String returns a minimal encoding of the HttpHdr struct.
String returns a minimal encoding of the HttpHdr struct.
// String returns a minimal encoding of the HttpHdr struct .
func (h *HttpHdr) String() string {
	if h.StatusCode == 0 {
		return fmt.Sprintf("%s %s %s",
			h.Proto,
			h.Method,
			h.RequestURI)
	}
	return fmt.Sprintf("%s %d",
		h.Proto,
		h.StatusCode)
}
func ( h * HttpHdr ) String ( ) string { if h . StatusCode == 0 { return fmt . Sprintf ( " " , h . Proto , h . Method , h . RequestURI ) } return fmt . Sprintf ( " " , h . Proto , h . StatusCode ) }
String returns a minimal encoding of the HttpHdr struct.
String returns a minimal encoding of the HttpHdr struct .