-
Notifications
You must be signed in to change notification settings - Fork 52
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
Hook for logging request? #124
Comments
@xdg - do you have any opinion on this? |
Hi. I'm not actively doing Perl development on this module, so I have to abstain, as I wouldn't be responsible for reviewing or merging. |
Ah, is @chansen the correct person to ask now? |
@chansen any thoughts? |
This isn't a vote one way or another, but just an observation -- adding hooks would make this module less tiny. LWP::UserAgent already supports hooks, so you might find your usecase better served there. |
Another possibility could be intercepting the data written to the output handle, which would be a way to address debugging needs like #123. |
I have a use case for logging some information about the request (what headers were actually sent). Does adding a hook/callback just before
$handle->write_request($request);
sound reasonable? If so, I can submit a patch for that.The text was updated successfully, but these errors were encountered: