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

Feat curl conversion #49

Merged
merged 9 commits into from
Mar 23, 2024

Conversation

NoahKamara
Copy link
Contributor

Implement an interceptor that outputs requests as a cURL command when a condition is met

This also implements a method Request.curl(sortHeaders:) -> String which turns a request into a cURL command to make it easy to implement custom interceptors that output curl

Copy link
Owner

@joshuawright11 joshuawright11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, this is awesome!

Great work @NoahKamara 👏👏

Couple minor nits then feel free to merge, I'll cut a release when it's in.

PapyrusCore/Sources/Request.swift Outdated Show resolved Hide resolved
PapyrusCore/Sources/Request.swift Outdated Show resolved Hide resolved
PapyrusCore/Sources/Request.swift Outdated Show resolved Hide resolved
PapyrusCore/Tests/CurlTests.swift Outdated Show resolved Hide resolved
PapyrusCore/Sources/Interceptors/CurlInterceptor.swift Outdated Show resolved Hide resolved
@NoahKamara
Copy link
Contributor Author

Couple minor nits then feel free to merge, I'll cut a release when it's in.

I think i resolved all the comments but im not a collaborator so you're gonna have to do the merging :)

@joshuawright11 joshuawright11 merged commit 86f4e43 into joshuawright11:main Mar 23, 2024
2 checks passed
@joshuawright11
Copy link
Owner

Amazing work @NoahKamara!

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.

Log Failed Request cURL
2 participants