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

Method String

httpgrpc/httpgrpc.pb.go:706–723  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

704 return sovHttpgrpc(uint64((x << 1) ^ uint64((int64(x) >> 63))))
705}
706func (this *HTTPRequest) String() string {
707 if this == nil {
708 return "nil"
709 }
710 repeatedStringForHeaders := "[]*Header{"
711 for _, f := range this.Headers {
712 repeatedStringForHeaders += strings.Replace(f.String(), "Header", "Header", 1) + ","
713 }
714 repeatedStringForHeaders += "}"
715 s := strings.Join([]string{`&HTTPRequest{`,
716 `Method:` + fmt.Sprintf("%v", this.Method) + `,`,
717 `Url:` + fmt.Sprintf("%v", this.Url) + `,`,
718 `Headers:` + repeatedStringForHeaders + `,`,
719 `Body:` + fmt.Sprintf("%v", this.Body) + `,`,
720 `}`,
721 }, "")
722 return s
723}
724func (this *HTTPResponse) String() string {
725 if this == nil {
726 return "nil"

Callers

nothing calls this directly

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected