MCPcopy
hub / github.com/caddyserver/caddy / PostForm

Method PostForm

modules/caddyhttp/reverseproxy/fastcgi/client.go:315–318  ·  view source on GitHub ↗

PostForm issues a POST to the fcgi responder, with form as a string key to a list values (url.Values)

(p map[string]string, data url.Values)

Source from the content-addressed store, hash-verified

313// PostForm issues a POST to the fcgi responder, with form
314// as a string key to a list values (url.Values)
315func (c *client) PostForm(p map[string]string, data url.Values) (resp *http.Response, err error) {
316 body := bytes.NewReader([]byte(data.Encode()))
317 return c.Post(p, "POST", "application/x-www-form-urlencoded", body, int64(body.Len()))
318}
319
320// PostFile issues a POST to the fcgi responder in multipart(RFC 2046) standard,
321// with form as a string key to a list values (url.Values),

Callers 1

sendFcgiFunction · 0.95

Calls 2

PostMethod · 0.95
LenMethod · 0.45

Tested by 1

sendFcgiFunction · 0.76