(bodyWriter *io.PipeWriter, parameters []ExecutionParameter, cancel context.CancelCauseFunc)
| 223 | } |
| 224 | |
| 225 | func (e HttpExecutor) writeJsonBody(bodyWriter *io.PipeWriter, parameters []ExecutionParameter, cancel context.CancelCauseFunc) { |
| 226 | go func() { |
| 227 | defer func() { _ = bodyWriter.Close() }() |
| 228 | err := e.serializeJson(bodyWriter, parameters) |
| 229 | if err != nil { |
| 230 | cancel(err) |
| 231 | return |
| 232 | } |
| 233 | }() |
| 234 | } |
| 235 | |
| 236 | func (e HttpExecutor) writeBody(ctx ExecutionContext, cancel context.CancelCauseFunc) (io.ReadCloser, string, int64, int64) { |
| 237 | if ctx.Input != nil { |
no test coverage detected