-
Notifications
You must be signed in to change notification settings - Fork 22
Add useragent attribute for custom LWP::UserAgent configuration #68
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
Conversation
Co-authored-by: davorg <[email protected]>
Co-authored-by: davorg <[email protected]>
|
@copilot Explain in more depth why you can't replace the |
The The Problem: Flow in
Flow in
Why The initial |
|
@copilot So can the initial |
No, the initial
The bare |
Adds support for providing a custom LWP::UserAgent instance to XML::Feed for controlling HTTP behavior when fetching feeds from URIs.
Changes
Constructor: Accepts optional
{ useragent => $ua }hashref as final parameter with validationuseragent()method: Getter/setter with lazy initializationget_uri(): Uses instance useragent when available, creates default only when neededparse(): Calls$feed->get_uri()instead of$class->get_uri()to respect instance useragentValidation: Rejects non-LWP::UserAgent objects and unknown hash keys
Maintains backward compatibility - existing code unchanged, RSS version parameter unaffected.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
cpanmin.uscurl -L REDACTED(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.