mdklatt / httpexec

Execute CLI commands over HTTP via a REST API.
MIT License
0 stars 0 forks source link

Return STDERR and STDOUT encoding with the response #8

Closed mdklatt closed 1 year ago

mdklatt commented 1 year ago

Even though the client requests the encoding scheme to use for STDERR and STDOUT, returning the scheme as part of the response adds robustness while increasing the response size a negligible amount:

{
  "response": 0,
  "stderr": {"content": "some logger output", "encode": null},
  "stdout": {"content": "some binary data", "encode": "base64"}
}
mdklatt commented 1 year ago

Issue resolved by commit d47e7f963cf4fe5be162719cd495f6e2284ca622.