()
| 130 | } |
| 131 | |
| 132 | func (t *Task) method() string { |
| 133 | if t.Method == "" { |
| 134 | return "POST" |
| 135 | } |
| 136 | return t.Method |
| 137 | } |
| 138 | |
| 139 | // NewPOSTTask creates a Task that will POST to a path with the given form data. |
| 140 | func NewPOSTTask(path string, params url.Values) *Task { |