mirror of
https://github.com/httpie/cli.git
synced 2025-06-25 20:11:32 +02:00
Deprecate --history-print (#1380)
This commit is contained in:
parent
af1d6b1853
commit
0f9fd76852
@ -1665,14 +1665,6 @@ $ http --all --follow pie.dev/redirect/3
|
|||||||
|
|
||||||
The intermediary requests/responses are by default formatted according to `--print, -p` (and its shortcuts described above).
|
The intermediary requests/responses are by default formatted according to `--print, -p` (and its shortcuts described above).
|
||||||
|
|
||||||
If you’d like to change that, use the `--history-print, -P` option.
|
|
||||||
It takes the same arguments as `--print, -p` but applies to the intermediary requests only.
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# Print the intermediary requests/responses differently than the final one:
|
|
||||||
$ http -A digest -a foo:bar --all -p Hh -P H pie.dev/digest-auth/auth/foo/bar
|
|
||||||
```
|
|
||||||
|
|
||||||
### Conditional body download
|
### Conditional body download
|
||||||
|
|
||||||
As an optimization, the response body is downloaded from the server only if it’s part of the output.
|
As an optimization, the response body is downloaded from the server only if it’s part of the output.
|
||||||
|
@ -298,16 +298,6 @@ Digest auth is used \fB\,--auth\/\fR=digest), etc.
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
.IP "\fB\,--history-print\/\fR, \fB\,-P\/\fR \fI\,WHAT\/\fR"
|
|
||||||
|
|
||||||
|
|
||||||
The same as\fB\,--print\/\fR,\fB\,-p\/\fR but applies only to intermediary requests/responses
|
|
||||||
(such as redirects) when their inclusion is enabled with\fB\,--all\/\fR. If this
|
|
||||||
options is not specified, then they are formatted the same way as the final
|
|
||||||
response.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.IP "\fB\,--stream\/\fR, \fB\,-S\/\fR"
|
.IP "\fB\,--stream\/\fR, \fB\,-S\/\fR"
|
||||||
|
|
||||||
|
|
||||||
|
@ -298,16 +298,6 @@ Digest auth is used \fB\,--auth\/\fR=digest), etc.
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
.IP "\fB\,--history-print\/\fR, \fB\,-P\/\fR \fI\,WHAT\/\fR"
|
|
||||||
|
|
||||||
|
|
||||||
The same as\fB\,--print\/\fR,\fB\,-p\/\fR but applies only to intermediary requests/responses
|
|
||||||
(such as redirects) when their inclusion is enabled with\fB\,--all\/\fR. If this
|
|
||||||
options is not specified, then they are formatted the same way as the final
|
|
||||||
response.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.IP "\fB\,--stream\/\fR, \fB\,-S\/\fR"
|
.IP "\fB\,--stream\/\fR, \fB\,-S\/\fR"
|
||||||
|
|
||||||
|
|
||||||
|
@ -494,14 +494,7 @@ output_options.add_argument(
|
|||||||
'-P',
|
'-P',
|
||||||
dest='output_options_history',
|
dest='output_options_history',
|
||||||
metavar='WHAT',
|
metavar='WHAT',
|
||||||
short_help='--print for intermediary requests/responses.',
|
help=Qualifiers.SUPPRESS,
|
||||||
help="""
|
|
||||||
The same as --print, -p but applies only to intermediary requests/responses
|
|
||||||
(such as redirects) when their inclusion is enabled with --all. If this
|
|
||||||
options is not specified, then they are formatted the same way as the final
|
|
||||||
response.
|
|
||||||
|
|
||||||
""",
|
|
||||||
)
|
)
|
||||||
output_options.add_argument(
|
output_options.add_argument(
|
||||||
'--stream',
|
'--stream',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user