WithUpload sets HTTP request body for uploading file(s).
(upload map[string]interface{})
| 835 | |
| 836 | // WithUpload sets HTTP request body for uploading file(s). |
| 837 | func (s *StepRequestWithOptionalArgs) WithUpload(upload map[string]interface{}) *StepRequestWithOptionalArgs { |
| 838 | // init upload |
| 839 | initUpload(s.step) |
| 840 | s.step.Request.Upload = upload |
| 841 | return s |
| 842 | } |
| 843 | |
| 844 | // TeardownHook adds a teardown hook for current teststep. |
| 845 | func (s *StepRequestWithOptionalArgs) TeardownHook(hook string) *StepRequestWithOptionalArgs { |