Skip to content

include kwarg which accepts a string to separate -H k: v pairs#24

Open
gaucheph wants to merge 1 commit intoofw:masterfrom
gaucheph:allow-escaped-newlines
Open

include kwarg which accepts a string to separate -H k: v pairs#24
gaucheph wants to merge 1 commit intoofw:masterfrom
gaucheph:allow-escaped-newlines

Conversation

@gaucheph
Copy link

main use case for this is for requests which have very long headers or a lot of them such that the curlified request, in its one-liner form, can be difficult to parse

@ofw
Copy link
Owner

ofw commented May 21, 2020

Thanks! I think a better API would be to introduce a flag pretty=True|False to pretty print curl command when each part is on separate line

@ofw
Copy link
Owner

ofw commented May 25, 2025

Hi! If you think that this change is still relevant please rebase it onto the main branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants