Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate --history-print. #1380

Merged
merged 1 commit into from
May 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

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

As an optimization, the response body is downloaded from the server only if it’s part of the output.
Expand Down
10 changes: 0 additions & 10 deletions extras/man/http.1
Original file line number Diff line number Diff line change
Expand Up @@ -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"


Expand Down
10 changes: 0 additions & 10 deletions extras/man/https.1
Original file line number Diff line number Diff line change
Expand Up @@ -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"


Expand Down
9 changes: 1 addition & 8 deletions httpie/cli/definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,14 +494,7 @@ def format_style_help(available_styles, *, isolation_mode: bool = False):
'-P',
dest='output_options_history',
metavar='WHAT',
short_help='--print for intermediary requests/responses.',
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.

""",
help=Qualifiers.SUPPRESS,
)
output_options.add_argument(
'--stream',
Expand Down