MCPcopy Create free account
hub / github.com/golang/appengine / NewPOSTTask

Function NewPOSTTask

taskqueue/taskqueue.go:140–149  ·  view source on GitHub ↗

NewPOSTTask creates a Task that will POST to a path with the given form data.

(path string, params url.Values)

Source from the content-addressed store, hash-verified

138
139// NewPOSTTask creates a Task that will POST to a path with the given form data.
140func NewPOSTTask(path string, params url.Values) *Task {
141 h := make(http.Header)
142 h.Set("Content-Type", "application/x-www-form-urlencoded")
143 return &Task{
144 Path: path,
145 Payload: []byte(params.Encode()),
146 Header: h,
147 Method: "POST",
148 }
149}
150
151// RequestHeaders are the special HTTP request headers available to push task
152// HTTP request handlers. These headers are set internally by App Engine.

Callers

nothing calls this directly

Calls 2

SetMethod · 0.45
EncodeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…