MCPcopy Create free account
hub / github.com/imroc/req / Add

Method Add

req.go:22–25  ·  view source on GitHub ↗

Add adds a new key-value pair of Content-Disposition

(key, value string)

Source from the content-addressed store, hash-verified

20
21// Add adds a new key-value pair of Content-Disposition
22func (c *ContentDisposition) Add(key, value string) *ContentDisposition {
23 c.kv = append(c.kv, kv{Key: key, Value: value})
24 return c
25}
26
27func (c *ContentDisposition) string() string {
28 if c == nil {

Callers 15

handleTaskMethod · 0.80
DoMethod · 0.80
cloneUrlValuesFunction · 0.80
handleHTTPFunction · 0.80
handleGetFunction · 0.80
queueForIdleConnMethod · 0.80
createMultipartHeaderFunction · 0.80
parseRequestURLFunction · 0.80
fixLengthFunction · 0.80
SetFormDataFromValuesMethod · 0.80

Calls

no outgoing calls

Tested by 8

handleHTTPFunction · 0.64
handleGetFunction · 0.64
testQueryParamFunction · 0.64
testFormFunction · 0.64
TestAltSvcJarSetGetFunction · 0.64
TestAltSvcJarExpiredFunction · 0.64
TestDialFunction · 0.64