MCPcopy Create free account
hub / github.com/gogs/gogs / Param

Method Param

internal/httplib/httplib.go:219–222  ·  view source on GitHub ↗

Param adds query param in to request. params build query string as ?key1=value1&key2=value2...

(key, value string)

Source from the content-addressed store, hash-verified

217// Param adds query param in to request.
218// params build query string as ?key1=value1&key2=value2...
219func (r *Request) Param(key, value string) *Request {
220 r.params[key] = value
221 return r
222}
223
224func (r *Request) PostFile(formname, filename string) *Request {
225 r.files[formname] = filename

Callers 1

deliverMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected