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

Method QueryString

args.go:135–138  ·  view source on GitHub ↗

QueryString returns query string for the args. The returned value is valid until the Args is reused or released (ReleaseArgs). Do not store references to the returned value. Make copies instead.

()

Source from the content-addressed store, hash-verified

133// The returned value is valid until the Args is reused or released (ReleaseArgs).
134// Do not store references to the returned value. Make copies instead.
135func (a *Args) QueryString() []byte {
136 a.buf = a.AppendBytes(a.buf[:0])
137 return a.buf
138}
139
140// Sort sorts Args by key and then value using 'f' as comparison function.
141//

Callers 3

TestArgsUintFunction · 0.95
StringMethod · 0.95
WriteToMethod · 0.95

Calls 1

AppendBytesMethod · 0.95

Tested by 1

TestArgsUintFunction · 0.76