Body sets the request body on the last added call.
(body interface{})
| 67 | |
| 68 | // Body sets the request body on the last added call. |
| 69 | func (d *DryRunAPI) Body(body interface{}) *DryRunAPI { |
| 70 | if n := len(d.calls); n > 0 { |
| 71 | d.calls[n-1].Body = body |
| 72 | } |
| 73 | return d |
| 74 | } |
| 75 | |
| 76 | // Params sets query parameters on the last added call. |
| 77 | func (d *DryRunAPI) Params(params map[string]interface{}) *DryRunAPI { |
no outgoing calls