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

Method Add

args.go:201–203  ·  view source on GitHub ↗

Add adds 'key=value' argument. Multiple values for the same key may be added.

(key, value string)

Source from the content-addressed store, hash-verified

199//
200// Multiple values for the same key may be added.
201func (a *Args) Add(key, value string) {
202 a.args = appendArg(a.args, key, value, argsHasValue)
203}
204
205// AddBytesK adds 'key=value' argument.
206//

Callers 15

TestArgsAddFunction · 0.95
TestArgsSortKeysFunction · 0.95
TestArgsDeleteAllFunction · 0.95
TestArgsEscapeFunction · 0.45
getNextProtoMethod · 0.45
ServeMethod · 0.45
ServeConnMethod · 0.45
tryAcquireConcurrencyMethod · 0.45
releaseConcurrencyMethod · 0.45
serveConnCleanupMethod · 0.45
serveConnCountedMethod · 0.45

Calls 1

appendArgFunction · 0.85

Tested by 15

TestArgsAddFunction · 0.76
TestArgsSortKeysFunction · 0.76
TestArgsDeleteAllFunction · 0.76
TestArgsEscapeFunction · 0.36
FuzzValidateIPv6LiteralFunction · 0.36