MCPcopy Create free account
hub / github.com/UiPath/uipathcli / writeJsonBody

Method writeJsonBody

executor/http_executor.go:225–234  ·  view source on GitHub ↗
(bodyWriter *io.PipeWriter, parameters []ExecutionParameter, cancel context.CancelCauseFunc)

Source from the content-addressed store, hash-verified

223}
224
225func (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
236func (e HttpExecutor) writeBody(ctx ExecutionContext, cancel context.CancelCauseFunc) (io.ReadCloser, string, int64, int64) {
237 if ctx.Input != nil {

Callers 1

writeBodyMethod · 0.95

Calls 2

serializeJsonMethod · 0.95
CloseMethod · 0.80

Tested by

no test coverage detected