-
Notifications
You must be signed in to change notification settings - Fork 1
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
Curl exporter #41
Curl exporter #41
Conversation
Code Climate has analyzed commit 56f976e and detected 0 issues on this pull request. View more on Code Climate. |
} | ||
} | ||
|
||
for h := range req.Header { |
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.
Maybe handle cookies in another iteratio ? (there are so much options to handle 😨)
request_listener/curl.go
Outdated
@@ -9,6 +9,10 @@ import ( | |||
"strings" | |||
) | |||
|
|||
// CurlLogDumper will log the given http.Request | |||
// it gonna log the request using cli curl command format |
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.
it will log the request using the
curl command format
request_listener/curl.go
Outdated
@@ -9,6 +9,10 @@ import ( | |||
"strings" | |||
) | |||
|
|||
// CurlLogDumper will log the given http.Request | |||
// it gonna log the request using cli curl command format | |||
// Caution request header and Body can be heavy!! |
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.
/!\ Caution request header and Body can be heavy !!
?
// Pay attention to the dump quantity/weight | ||
// CurlLogDumper will log the request using the curl command format | ||
// /!\ Caution request header and Body can be heavy !! | ||
// Eg tripperware: |
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.
Maybe add something like this:
You can use this tripperware to only dump the request if
dump HTTP Header is present
?
No description provided.