diff options
author | Jay Satiro <raysatiro@yahoo.com> | 2021-01-28 18:56:50 -0500 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2021-02-09 02:48:27 -0500 |
commit | 65ca2294619f865362332ceddc622db92d0f50a6 (patch) | |
tree | a1f2575bd296da4eee3c1dd4cc3552ab2b625010 /lib/formdata.h | |
parent | b9f11ae87564447e61533eeafea9a1caa4cfa31d (diff) | |
download | curl-65ca2294619f865362332ceddc622db92d0f50a6.tar.gz |
tool_writeout: refactor write-out and write-out json
- Deduplicate the logic used by write-out and write-out json.
Rather than have separate writeLong, writeString, etc, logic for
each of write-out and write-out json instead have respective shared
functions that can output either format and a 'use_json' parameter to
indicate whether it is json that is output.
This will make it easier to maintain. Rather than have to go through
two sets of logic now we only have to go through one.
- Support write-out %{errormsg} and %{exitcode} in json.
- Clarify in the doc that %{exitcode} is the exit code of the transfer.
Prior to this change it just said "The numerical exitcode" which
implies it's the exit code of the tool, and it's not necessarily that.
Closes https://github.com/curl/curl/pull/6544
Diffstat (limited to 'lib/formdata.h')
0 files changed, 0 insertions, 0 deletions