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

Method NotModified

server.go:1576–1579  ·  view source on GitHub ↗

NotModified resets response and sets '304 Not Modified' response status code.

()

Source from the content-addressed store, hash-verified

1574
1575// NotModified resets response and sets '304 Not Modified' response status code.
1576func (ctx *RequestCtx) NotModified() {
1577 ctx.Response.Reset()
1578 ctx.SetStatusCode(StatusNotModified)
1579}
1580
1581// NotFound resets response and sets '404 Not Found' response status code.
1582func (ctx *RequestCtx) NotFound() {

Callers 1

handleRequestMethod · 0.80

Calls 2

SetStatusCodeMethod · 0.95
ResetMethod · 0.65

Tested by

no test coverage detected