MCPcopy Create free account
hub / github.com/gogs/gogs / String

Method String

internal/httplib/httplib.go:372–379  ·  view source on GitHub ↗

String returns the body string in response. it calls Response inner.

()

Source from the content-addressed store, hash-verified

370// String returns the body string in response.
371// it calls Response inner.
372func (r *Request) String() (string, error) {
373 data, err := r.Bytes()
374 if err != nil {
375 return "", err
376 }
377
378 return string(data), nil
379}
380
381// Bytes returns the body []byte in response.
382// it calls Response inner.

Callers 15

wrapImgWithLinkFunction · 0.45
postProcessHTMLFunction · 0.45
Test_MarkdownFunction · 0.45
SetCookieMethod · 0.45
getResponseMethod · 0.45
TestInitFunction · 0.45
initLogConfFunction · 0.45
InitLoggingFunction · 0.45
authenticatedUserFunction · 0.45
MakeURLMethod · 0.45
RepoRefFunction · 0.45
TestLocalStorage_UploadFunction · 0.45

Calls 2

BytesMethod · 0.95
stringFunction · 0.85

Tested by 6

Test_MarkdownFunction · 0.36
TestInitFunction · 0.36
TestLocalStorage_UploadFunction · 0.36
TestServeBatchFunction · 0.36
TestWebhookFunction · 0.36