-
Notifications
You must be signed in to change notification settings - Fork 416
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
added curl logger client aspect. #3285
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: Jules Ivanic <jivanic@demystdata.com>
Co-authored-by: Jules Ivanic <jivanic@demystdata.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Let's wait for Nabil's review :)
)(implicit trace: Trace): ZClientAspect[Nothing, Any, Nothing, Body, Nothing, Any, Nothing, Response] = | ||
new ZClientAspect[Nothing, Any, Nothing, Body, Nothing, Any, Nothing, Response] { | ||
|
||
def formatCurlCommand( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@landlockedsurfer Do you think we could put this capacity to transform a Request to a curl
String as a method of Request
and use this method here?
That'd allow people to "toString" their requests in a nice way if they need to (to log it at any moment, for example)
Hi all!
There was a message in the Discord the other day asking for a curl command logger.
Here's a first version that should properly handle the most basic options. It does not handle any SSL options yet though.
I used the other
ZClientAspect
instances as a blueprint for the implementation.Hope this is useful!!