MCPcopy
hub / github.com/valyala/fasthttp / SetBodyString

Method SetBodyString

server.go:1499–1501  ·  view source on GitHub ↗

SetBodyString sets response body to the given value.

(body string)

Source from the content-addressed store, hash-verified

1497
1498// SetBodyString sets response body to the given value.
1499func (ctx *RequestCtx) SetBodyString(body string) {
1500 ctx.Response.SetBodyString(body)
1501}
1502
1503// ResetBody resets response body contents.
1504func (ctx *RequestCtx) ResetBody() {

Callers 3

ErrorMethod · 0.95
SuccessStringMethod · 0.95
NotFoundMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected