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

Struct MemoryOutputWriter

output/memory_output_writer.go:10–16  ·  view source on GitHub ↗

The MemoryOutputWriter keeps the response in memory so it can read multiple times.

Source from the content-addressed store, hash-verified

8// The MemoryOutputWriter keeps the response in memory so it can read
9// multiple times.
10type MemoryOutputWriter struct {
11 statusCode int
12 status string
13 protocol string
14 header map[string][]string
15 body []byte
16}
17
18func (w *MemoryOutputWriter) WriteResponse(response ResponseInfo) error {
19 w.statusCode = response.StatusCode

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected