chansen / p5-http-tiny

Tiny HTTP Client
https://metacpan.org/dist/HTTP-Tiny
53 stars 52 forks source link

Return redirect history? #85

Closed FGasper closed 8 years ago

FGasper commented 8 years ago

It would be advantageous for some clients to have access to the redirection history when fulfilling a request. e.g.:

GET http://old.domain.tld -> Status: 301 -> Location: http://new.domain.tld

GET http://new.domain.tld -> Status: 200 etc.

In the above case, it can be useful to know about the initial 301 response, any headers from then, etc.

FGasper commented 8 years ago

NM! It’s already there! :)