Skip to content

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

Open
gaucheph wants to merge 1 commit into
ofw: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 into
ofw:masterfrom
gaucheph:allow-escaped-newlines

Conversation

@gaucheph

Copy link
Copy Markdown

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

ofw commented May 21, 2020

Copy link
Copy Markdown
Owner

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

ofw commented May 25, 2025

Copy link
Copy Markdown
Owner

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