MCPcopy
hub / github.com/grafana/dskit / String

Method String

httpgrpc/httpgrpc.pb.go:724–740  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

722 return s
723}
724func (this *HTTPResponse) String() string {
725 if this == nil {
726 return "nil"
727 }
728 repeatedStringForHeaders := "[]*Header{"
729 for _, f := range this.Headers {
730 repeatedStringForHeaders += strings.Replace(f.String(), "Header", "Header", 1) + ","
731 }
732 repeatedStringForHeaders += "}"
733 s := strings.Join([]string{`&HTTPResponse{`,
734 `Code:` + fmt.Sprintf("%v", this.Code) + `,`,
735 `Headers:` + repeatedStringForHeaders + `,`,
736 `Body:` + fmt.Sprintf("%v", this.Body) + `,`,
737 `}`,
738 }, "")
739 return s
740}
741func (this *Header) String() string {
742 if this == nil {
743 return "nil"

Callers

nothing calls this directly

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected